We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

DOCX to PDF conversion generates incorrect numbers of pages using Java

Issue: We are converting a MS word document to pdf document in java code.
After the conversion, we found out the page numbers in pdf document is not as same as the word document.
Please refer the page numbers in word and pdf documents from the attached zip file.

Aspose Version Used: aspose-words-15.12.0-jdk16

Simple Java program to recreate the issue with sample word and pdf documents.pdf_conversion.zip (129.0 KB)

Regards,
Krish Dasari

@kd0736_att_com

You are using very old version of Aspose.Words. Please try the latest version of Aspose.Words for Java 20.5.

We suggest you please insert the watermark using the latest API of Aspose.Words. For more detail, please read the following article.
Working with Watermark