Hi. I’m converting word docs to pdfs in an azure cloud service using the .Net Framework 4.7.2. Some word docs have a blank page at the end and that blank page isn’t included in the converted PDF. Is there a way to prevent this?
Also I’m having an issue with charts not being converted. Below is my code, the original document, and converted document.
Original Document
Converted Document
DocToPDFConverter converter = new DocToPDFConverter(); converter.Settings.RecreateNestedMetafile = true; |
Hi Manikandan,
Thank you! One question, will that also fix the blank page in the word doc not being brought over into the pdf?
Ah nevermind. It appears to be a pagination issue. Seems like when it converts to PDF it doesn't recognize that there needs to be another page. It's also moving some text across pages.
Hi Manikandan,
I haven't altered the fonts so what you see there should be it. Is there a way to ensure that the conversion process includes those fonts?
Hi Manikandan,
I tried adding the font substitution method, but it did not fix the pagination issue.
Hi Manikandan,
The document looks much better after the conversion process with those font changes. There are still a few differences, for instance the end of pages 5, 6, and 7, but overall much better. I will get with my team and get back to you. Thank you again!