[ 
https://issues.apache.org/jira/browse/PDFBOX-2046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13983400#comment-13983400
 ] 

Tilman Hausherr commented on PDFBOX-2046:
-----------------------------------------

I tested your patch and it works not just on your file, and it doesn't 
interfere with the rendering of about 100 test files. Your patch has three parts
1. "currentdict" can indeed be there as per spec. Although I wonder if anything 
should be done with it.
3. this one makes sense by itself, such "premature end" code appears elsewhere 
already
2. this one I believe is a syntax error in the font. The spec clearly tells 
that NP = noaccess put. But considering that we don't do anything with this 
information except skipping it, I don't care.
I have committed your change in rev 1590749. I'm not yet setting the issue to 
resolved, I prefer a second opinion.

> [PATCH] Can't read the embedded Type1 font
> ------------------------------------------
>
>                 Key: PDFBOX-2046
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2046
>             Project: PDFBox
>          Issue Type: Bug
>            Reporter: simon steiner
>              Labels: type1, type1font
>         Attachments: issue.pdf, type1parser.patch
>
>
> java -jar ~/pdf-box-svn/app/target/pdfbox-app-2.0.0-SNAPSHOT.jar PDFToImage 
> x.pdf
> SEVERE: Can't read the embedded Type1 font
> java.io.IOException: Found Token[kind=NAME, text=end] but expected LITERAL
> SEVERE: Can't read the embedded Type1 font
> java.io.IOException: Found Token[kind=NAME, text=currentdict] but expected 
> LITERAL



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to