I’m trying to generate PDF file from DOC/DOCX files but generated PDF file line position/height/layout is always different from source.
I’ve tested many different loading/save options (I’ve commented them on source code).
(MS Word compatibility loading option, embedding full fonts, enabling additional text position, different PDF standart, new Harf Buzz Shaping, etc).
Here is the input and output file difference example:
https://ibb.co/RSv1KK8 (input DOCX document)
https://ibb.co/F4Brnjp (output PDF document)
I’m using Aspose Words Java 19.11, OpenJDK 1.8 on macOS and OpenJDK 11.0 on Linux. (MS core and additional fonts are installed).
Here are the source, generated PDF files and Java source code:
Additionally, I’ve also tested PDF conversion with GroupDocs Cloud API (your sister company?). It provides same faulty output.