Aspose.word java conversion problem

Use the aspose.word java control version 18.4. In the conversion from word to PDF, word originally had only 5 pages, but after converting to PDF, PDF has 7 pages.
How can I reduce the length of PDF and make PDF more beautiful?
Attachment is the contrast before and after conversionConverted PDF.pdf (255.3 KB)
Desktop.zip (274.4 KB)

@xiangliling

Thanks for your inquiry.

The input document has 6 pages. Please check the attached screenshot of MS Word 2016. The output file generated by Aspose.Words has 7 pages.

We have logged this problem in our issue tracking system as WORDSNET-17962. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

@xiangliling

Thanks for your patience. Regarding WORDSNET-17962, please use the following code example to get the desired output.

LoadOptions lo = new LoadOptions();
lo.setMswVersion(MsWordVersion.WORD_2013);

Document doc = new Document(MyDir + "Pre-conversion document.docx", lo);
doc.save(MyDir + "19.1.pdf");

The issues you have found earlier (filed as WORDSNET-17962) have been fixed in this Aspose.Words for .NET 19.3 update and this Aspose.Words for Java 19.3 update.