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

Free Support Forum - aspose.com

Font Issue Aspose Words Java

Hello,


We are using aspose words version aspose-words-15.8.0 deployed on OS having version RHEL 7 (Oracle variant : OEL 7).

Here we are generating word document and then saving it as PDF, everything is working fine on windows but on RHEL 7 word and pdf outputs are different.
Below is java code used for same:

document.save(fileName+".pdf",SaveFormat.PDF);
document.save(fileName+".docx",SaveFormat.DOCX);

Find Font difference and FC-LIST output as attachments.

Hi Puneet,


Thanks for your inquiry. You need to install fonts on the machine where you’re converting documents to PDF. Please refer to the following articles:

How Aspose.Words Uses True Type Fonts
How to Specify True Type Fonts Location
How to Install True Type Fonts on Linux
How to Receive Notification of Missing Fonts and Font Substitution during Rendering

Moreover, we suggest you please upgrade to the latest version of Aspose.Words for Java 15.10.0. Hope this helps you. Please let us know if you have any more queries.