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

Free Support Forum - aspose.com

HTML to PDF: Arial font not included in Linux

We are doing HTML to PDF conversion with Aspose.PDF for Java. The font of the html we are converting to pdf is “Arial”.

On Mac and Windows everything is working fine, but on Linux the Arial font is not included and some sections of the generated pdf are displayed on top of each other because of this.

How can we make sure the font is included on Linux as well?
I tried putting the Arial font into a fonts folder and setting it like this:

String fontsFolder = "/opt/fonts";

java.util.List newList = new ArrayList();



But the above does not have any effect. What is the correct way of doing this?

Please instruct how to resolve this issue.

Hi Steffen,

Thanks for your inquiry. We will appreciate it if you please share your sample HTML document here. We will look into it and guide you accordingly.

We are sorry for the inconvenience caused.

Best Regards,


we are experiencing similar scenario in our project where the Fonts are not getting loaded in HTML Fragment API in Linux environment but works fine in Windows.

Did you folks find solution for this issue.


Hi Ramesh,

Thanks for contacting support.

As shared in your other forum thread, we are working on testing the scenario in our environment and will keep you posted with our findings.