[ https://issues.apache.org/jira/browse/PDFBOX-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14029337#comment-14029337 ]
Andreas Lehmkühler commented on PDFBOX-2137: -------------------------------------------- I've fixed the issue as proposed in revision http://svn.apache.org/r1602223. But now there is another issue, an ArrayOutOfBounds in Type1CharString, looks related to PDFBOX-2135 > Rendering of Type3 string fails with NPE > ---------------------------------------- > > Key: PDFBOX-2137 > URL: https://issues.apache.org/jira/browse/PDFBOX-2137 > Project: PDFBox > Issue Type: Bug > Components: Rendering > Affects Versions: 2.0.0 > Reporter: Petr Slaby > Assignee: Andreas Lehmkühler > Attachments: 000536.pdf, PageDrawer.drawType3String.patch > > > Rendering of the attached PDF fails with a NPE in PDFStreamEngine at the line > 395 (float spaceWidthDisp = ...) because the textMatrix field is null. The > reason is that the textMatrix gets reset while processing the first character > of the string in PageDrawer#drawType3String(). The attached patch fixes the > problem, but I am not quite sure whether it is the right solution. > To debug this, set a breakpoint in PDFStreamEngine#processEncodedText() with > the condition "string.length == 2 && string[1] == 67" and watch the > textMatrix field vanish after the first character has been processed. -- This message was sent by Atlassian JIRA (v6.2#6252)