Displaying HTML Page Data in DOCX Format and Generating PDF/Word Output

Dear Support Team,

I hope this message finds you well. I am currently working on a project where I need to display HTML page data using a DOC template, with the final output generated in PDF/Word format.

Here’s a brief overview of my requirements:

  1. I have an HTML page containing data.
  2. I possess a DOC template that I would like to use for formatting.
  3. The ultimate goal is to generate the final output in both PDF and Word formats.

Could you please provide guidance or code examples on how to achieve this? Any assistance or direction you can offer will be highly appreciated.

Thank you in advance for your time and support.

@kalpeshAspose1997 You can use DocumentBuilder.insertHtml method to insert HTML into the document. After inserting HTML the document can be saved as DOCX or PDF or any other supported formats.