xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dr Stev <stevm...@sio.midco.net>
Subject RE: How to make embedded font readable?
Date Tue, 13 Sep 2011 00:33:05 GMT

I have had problems reading and using PDF files that were created in
another application and using embedded fonts.  My simple matter was to
print these PDFs.  But there was always a font substitution used by
pdfbox that really did not work for me.

I think there is an open issue regarding this and it would be nice to
see it resolved.  If I remember right the problem was related to an
incomplete font descriptor or maybe the whole font library wasn't there.

I have had to use another library to print PDFs but I don't like it.  It
is not as finished as this library.  But at least it knows how to use
the font library that is embedded in the PDF.

On Mon, 2011-09-12 at 15:54 -0400, Eric Douglas wrote:
> I'll look into that JIRA, thanks.
> The pdfbox error in the original message below shows the class and method producing this
message in the Java log.
> Digging a little deeper, this is caused by the pdfbox method:
> org.apache.pdfbox.pdmodel.font.PDFontDescriptorDictionary.getFontFile2()
> This is trying to read the "FontFile2" key which was written by FOP.
> org.apache.fop.pdf.PDFFontDescriptor.setFontFile()
> One of these is missing something.
> -----Original Message-----
> From: Andreas Lehmkuehler [mailto:andreas@lehmi.de] 
> Sent: Monday, September 12, 2011 3:30 PM
> To: users@pdfbox.apache.org
> Cc: fop-users@xmlgraphics.apache.org
> Subject: Re: How to make embedded font readable?
> Hi,
> Am 12.09.2011 15:31, schrieb Eric Douglas:
> > FOP created the PDF.  Pdfbox is trying to read it.
> > I'm not sure which end is missing what.
> > I'm embedding fonts and pdfbox says there's something there it can't 
> > read.
> I guess it is an issue with PDFBox, but without a sample PDF it's only a guess. 
> Please create an issue on JIRA [1] and attach a sample pdf to it.
> > Sep 12, 2011 9:18:12 AM
> > org.apache.pdfbox.pdmodel.font.PDCIDFontType2Font getawtFont
> > INFO: Can't read the embedded font EAAAAD+LucidaSans-Typewriter
> BR
> Andreas Lehmkühler
> [1] https://issues.apache.org/jira/browse/PDFBOX

To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

View raw message