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

Free Support Forum - aspose.com

Incorrect pagination after DOCX to PDF conversion at Ubuntu

Good day!
There was a problem converting the WORD file (doc and docx) to PDF using Aspose Word Java. The pagination of a PDF document does not match the pagination in a WORD file. However, on a local computer with the same version of Java 11, liberica jdk 12.2 and Windows 10 Pro, everything works correctly. And on the following server, the code does not execute correctly:
Used Java Version: 11
OS: Ubuntu 18.04 Linux x64
HDD: 60 GB
RAM: 4 GB
CPU: 2 cores

Tell me, please, can there be a way to solve the problem? Version of the connected library: 19.11. Library connection string in gradle: implementation (group: ‘com.aspose’, name: ‘aspose-words’, version: ‘19 .11 ’, classifier:‘ jdk17 ’)

@beralex

Please note that Aspose.Words requires TrueType fonts when rendering document to fixed-page formats (JPEG, PNG, PDF or XPS). You need to install fonts that are used in your document on the machine where you are converting documents to PDF. Please refer to the following articles:

How Aspose.Words Uses True Type Fonts
How to Receive Notification of Missing Fonts and Font Substitution during Rendering

@tahir.manzoor,

Good day!
Thank you! Your recommendation helped us.