Hi, Gesendet: Mo, 08. Feb 2010 Von: Samuel Penn<[email protected]>
> On Monday 08 February 2010 12:26:45 Samuel Penn wrote: > > I'm using PDFBox 0.8 (Java) to render some PDFs as images, and I'm > > running into problems with font rendering. For some documents > > (notably, some test documents I've created using OpenOffice) all > > text is showing up as squares. > > > > Looking at one of the documents in Adobe Acrobat, the fonts that are > > being used are: > > > > Arial-BoldMT (Embedded Subset) > > TimesNewRomanPS-BoldMT (Embedded Subset) > > TimesNewRomanPSMT (Embedded Subset) > > Verdana-Bold (Embedded Subset) > > This bug looks similar: > > http://issues.apache.org/jira/browse/PDFBOX-501 > > So I guess it's a bug rather than me doing something stupid. > > Is there a workaround, such as forcing PDFBox to use a different > font rather than trying to use the embedded subset? It's a combination of 2 seperate issues. There is a workaround for the embedded subset issue (see PDFBOX-490). If the subset fails, the standard font will be used (There should be some log about that substitution). BUT your document uses a builtin encoding for the text, which is probably the second issue. I'm afraid you have to wait until a least the encoding issue will be fixed or perhaps you should have a look at the OpenOffice printing dialog. Perhaps there are alternate configuration values to get a more pdfbox-friendly pdf. :-) BR Andreas Lehmkühler

