We are having an issue with Aspose.Words java where the save as PDF drastically messes up the formatting of the original document. We were using 19.6 but updated to 20.1 to verify the issue was still present. I have attached Sample Files.zip (546.4 KB) this has the orginal DOCX file we are reading into Aspose and doing some find and replace on text in the document. The Save as DOCX file is the results running through our AsposeCode.txt code where it saves it as a DOCX file and we are getting the expected results with this. When we till it to save it as a PDF file we get Save as PDF as our results where the formatting of the document gets shifted around a lot compared to the DOCX file. I also included an Expected Results.pdf file that I get from using MS Word to save the file as a pdf and the formatting is maintained.
If you could please let me know if there is anything that I should be doing to ensure the PDF format is coming out as expected that would be appreciated.