On Monday 08 February 2010 14:41:23 Andreas Lehmkühler wrote: > 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).
There isn't. For another document, there is a substitution message and the wrong font is used, but it at least displays something readable. For the OO documents there is no message. > 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. :-) I've already had a look at that, but there's nothing even vaguely obvious. I thought using PDF/A might do the trick, but it didn't. I guess I need to wait then, or find another way to create the documents. Thanks for your help. -- Be seeing you, http://www.glendale.org.uk Sam. Mail/IM (Jabber): [email protected]

