Hi,
is FontRepository.setReplaceNotFoundFonts()
supposed to replace embedded fonts? Please find attached a PDF which is rendered as PNG with the following Java code snippet:
public static void main( String[] args ) throws Exception
{
Document pdfDocument = new Document( "example-custom-font.pdf" );
FontRepository.setReplaceNotFoundFonts( true );
PngDevice device = new PngDevice( new Resolution( 100 ) );
device.process( pdfDocument.getPages().get_Item( 1 ), new FileOutputStream( "generated.png" ) );
}
The generated and the expected PNGs are attached as well.
Regards,
Michael
example-custom-font.pdf (37.2 KB)
expected.png (12.2 KB)
generated.png (12.4 KB)