Sometimes when converting docx to pdf, the pdf gets less pages than doc(e.g. the attached docx has 18 pages, but the converted pdf have 17 pages).
files.zip (193.4 KB)
I noticed in page 3 of docx, the last paragraph is separated to two pages, but the pdf is displaying the last paragraph in the same page.
It only happens occasionally for some documents, the attached files is just one example.
The code I used is
Document doc = new Document("E:\\Consent_6310.docx"); doc.save("E:\\Consent_6310.pdf", options);
I’m using Word 16.0.12228.20100, Win 10 1903, aspose-words-19.3-jdk17.