I’m using Aspose.Words for Java to convert .docx files to .pdf files. I’ve tried this on three different environments: Windows 2012 R2, Ubuntu 16.04 LTS, and Kubuntu 17.04 and have noticed differences in formatting depending on the OS.
Attached is a .zip containing the following files:
- AGT001__.docx - the .docx file being converted to .pdf
- Kubuntu17_04.pdf - the result of the conversion on Kubuntu 17.04
- Ubuntu16_04LTS - the result of the conversion on Ubuntu 16.04 LTS
- WindowsServer2012R2 - the result of the conversion on Windows Server 2012 R2
aspose.zip (1.5 MB)
Here are my comments on the output of each .pdf:
Windows 2012 R2:
- The formatting matches the source .docx exactly
Kubuntu 17.04:
- Most of the text is italicized in the .pdf when it wasn’t italicized in the .docx
- The vertical spacing between lines in the .pdf is larger than in the .docx
- There are page breaks in the .pdf that don’t exist in the .docx
Ubuntu 16.04 LTS:
- The vertical spacing between lines in the .pdf is larger than in the .docx
- There are page breaks in the .pdf that don’t exist in the .docx
Is there something I can do to make Aspose.Words output the .pdf come out like the Windows 2012 R2 one did for all operating systems?
Thanks.