Hi,

Am 19.12.2012 18:52, schrieb Kevin Brown:
Did you, or did anyone else, figure this out? I'm getting the same
issue with some PDFs, but a different font:

org.apache.pdfbox.pdmodel.font.PDType1Font <init>
INFO: Can't read the embedded type1C font MNJOCJ+Palatino-Bold

This is with 1.7.1
We improved the Type1C support recently, see [1] for further details.

On Thu, Mar 22, 2012 at 3:12 PM, Shalom Ben-Zvi <[email protected]> wrote:
Hi all
I am writing code that adds watermarks to pdf documents, I now have at
least one document that is problematic, I'm getting some font errors and
the document comes out empty:

22 Mar 2012 20:46:23,217 [main] DEBUG fileformat.pdf.PdfWatermarkInputStream - 
Initializing PdfWatermarkInputStream..
22 Mar 2012 20:46:23,229 [main] DEBUG fileformat.pdf.PdfWatermarkInputStream - 
Temp file created to /tmp/sfile7862373310127834572-watermark.pdf
22 Mar 2012 20:46:24,208 [main] INFO  pdmodel.font.PDType1Font - Can't read the 
embedded type1C font PSOgrkdutchbs
22 Mar 2012 20:46:24,278 [main] ERROR pdfbox.filter.FlateFilter - Stop reading 
corrupt stream
22 Mar 2012 20:46:24,281 [main] INFO  pdmodel.font.PDType1Font - Can't read the 
embedded type1C font PSOsymclas
22 Mar 2012 20:46:24,308 [main] ERROR pdfbox.filter.FlateFilter - Stop reading 
corrupt stream
22 Mar 2012 20:46:24,308 [main] INFO  pdmodel.font.PDType1Font - Can't read the 
embedded type1C font JHIACB+PSOwstletgoth
22 Mar 2012 20:46:25,327 [main] DEBUG fileformat.pdf.PdfWatermarkInputStream - 
PdfWatermarkInputStream initialized.

I can't attach the document coz the qmail-send program rejects it , but its 
this one:
http://www.google.co.il/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CCoQFjAA&url=http%3A%2F%2Fmmrc.caltech.edu%2FOscilliscope%2FTek%2520TDS210%2520service.pdf&ei=JnlrT8T2BoHN0QWY9uTVBg&usg=AFQjCNEGhFJhCSLGX0Ve11zFebKOiXFg1Q&sig2=NSlNZEPkrGyWFy4ZcxQWsQ

my code is very much like the pdfbox example AddMessageToEachPage, plus
some code that adds a graphicsState to make the watermark text opaque.

I googled and found some related discussions but nothing that helped me,
I have no idea how to fix that.
will appreciate any help

Thank you

Shalom


BR
Andreas Lehmkühler
[1] https://issues.apache.org/jira/browse/PDFBOX-1473


Reply via email to