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()”.