Skip to main content
June 28, 2024
Question

I need to convert word document to PDF

  • June 28, 2024
  • 3 replies
  • 0 views

So the requirement is to generate a PDF with dynamic fields, so we created a word document and when we are trying to convert word to PDF, the format is getting chnaged entirely.

Tried 1. PDF from DOCX : The format is completely deteriorate what should we  pass "PDF Options"

Tried 2. PDF from Single DOCX with Fonts , Content not visible in PDF (what should we pass in Font Document)

Tried 3.PDF from HTML : Getting document in one single page

3 replies

davidj137213
June 28, 2024

Try with HTML generating your document in a multipage format... Absolute heigth and witdht....... and havinf in mind the page size for an A4 (if that's the case)

anamf0002Author
June 28, 2024

Thanks David, but that's the question how to generate in multiple pages since the data is dynamically populated in html template, we don't know how much space it will take

davidj137213
June 28, 2024

It can be alittle bit tricky, but if you use marks, and having in mind the front type and size you use.... you can stimate when you are goind to change to a new page...