You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2014/06/11 18:51:02 UTC

[jira] [Commented] (PDFBOX-2134) Parsing of a Type1 font fails with a NPE

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

Andreas Lehmkühler commented on PDFBOX-2134:
--------------------------------------------

The given font doesn't provide any dup-values. I've fixed the parser in revision http://svn.apache.org/r1601944 to avoid the NPE.
But now there is another issue, an ArrayOutOfBounds in Type1CharString.

> Parsing of a Type1 font fails with a NPE
> ----------------------------------------
>
>                 Key: PDFBOX-2134
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2134
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.0
>            Reporter: Petr Slaby
>            Assignee: Andreas Lehmkühler
>            Priority: Minor
>         Attachments: 000216.pdf, testrun.log
>
>
> In the attached example, a NPE is thrown in Type1Parser#parseASCII(). The file renders fine in Acrobat and in PDFBox 1.7.x where the font was interpreted using AWT. It seems that the encoding dictionary is missing in the font, but I do not know enough about Type1 font syntax to really understand the problem.
> Note: This is just a file from my test suite, not a production problem. I do not know whether the parser or the PDF is wrong, I just know that it "worked before".



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