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();
newList.add(fontsFolder);
com.aspose.pdf.Document.setLocalFontPaths(newList);
But the above does not have any effect. What is the correct way of doing this?
Please instruct how to resolve this issue.