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

Free Support Forum - aspose.com

Unable to Reproduce Wonky PDF Rasterization

We have discovered that some PDF files render fonts very differently in our Docker-based environments even though we believe these environments are configured identically.
We have confirmed that all three test environments have the same fonts available in the “/usr/share/fonts” directory.
We are using the method “com.aspose.pdf.facades.PdfConverter.doConvert()” method. After that we are calling the “getNextImage()” method from the “PdfConverter” object. The only render options we are setting is with the code as follows:

val renderOpts = new RenderingOptions();
renderOpts.setTryToSkipDocumentErrors(true);

When we are calling the “getNextImage()” method we are calling it with the second parameter ImageType being “ImageType.getPng()”.

@glyphic

It looks like a font related issue. You can check if all fonts are properly placed and installed in they system where output is not getting generated correctly. You can check if any font is missing there. If issue still persists, please share your sample PDF document along with complete environment details so that we can test the scenario in our environment and address it accordingly. Please make sure to test the scenario with 23.1 before sharing the requested files.