I have attached a sample pdf file. Using the below code, the output tiff is a completely blank page. I have also tried using aspose.pdf.Document and process() on a TiffDevice and a PngDevice and both output blank pages.
Is 11.2.0 in your maven repo? I’m only seeing 11.0.0. My project uses maven dependencies.
I’d like to reopen this issue. I cannot reproduce the problem using Aspose.Pdf 11.2.0 or 11.3.0 when running locally on Mac OS so I thought the problem was solved.
- Document.getLocalFontPath () - shows the system folder in which project will look for fonts.
- Document.setLocalFontPath (String) - Setting font path to custom folder
// Set font folder path<o:p></o:p>
String path = "/home/tilal/fonts/";
// Adding a single font directory
// setting the user list for standard font directories
java.util.List list = com.aspose.pdf.Document.getLocalFontPaths();
I’m still having some trouble with this – what should the contents of my /usr/share/fonts folder look like? Does aspose recurse that directory if .ttf files are placed in sub-directories? Or would I need an explicit call to Document.addLocalFontPath() ?
Ok it turns out that the font file resources were getting modified and corrupted during the build, so some of the font files weren’t readable by Aspose. I fixed that and was able to get good results.