Hi, Betreff: How to add substitute font? Gesendet: Mo, 29. Mrz 2010 Von: Eric Chow<[email protected]>
> Hello, > > Is there any method to add substitute font for PDF rendering (convert PDF > pages to JPEG)? > > My PDF contains some Chinese but not all embedded in the PDF file. How can > I > define a substitute font in the program for the conversion? Add the name-mapping (name within pdf -> internal name) to [1] and the font-mapping (internal name -> font file) to [2]. But be aware, this works only for fonts which aren't embedded and can't be found automatically by pdfbox and it should work as a substitute for not working subsets of true type fonts, see [3] for further details. It won't work, if the rendering is scrambled because of an encoding issue. BR Andreas Lehmkühler [1] http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/resources/Resources/FontMapping.properties?view=markup [2] http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/resources/Resources/PDFBox_External_Fonts.properties?view=markup [3] https://issues.apache.org/jira/browse/PDFBOX-490

