[ 
https://issues.apache.org/jira/browse/PDFBOX-4824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tilman Hausherr resolved PDFBOX-4824.
-------------------------------------
    Fix Version/s: 3.0.0 PDFBox
                   2.0.20
         Assignee: Tilman Hausherr
       Resolution: Fixed

Thank you, also for your patience and cooperation. I've removed the fonts 
because I have a "bad feeling about this", want to avoid trouble with Apple, 
but I'm keeping them locally just in case. I haven't checked the lastresort 
font, the error message suggests that something is wrong with the font, which 
would not be surprising (the ArialUni font is an example). If you think there 
is a bug, I'd need some real failing real world application, e.g. creating a 
PDF with that font.

> NullpointerException with PDFDebugger
> -------------------------------------
>
>                 Key: PDFBOX-4824
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4824
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 2.0.19
>            Reporter: Stefano Padovan
>            Assignee: Tilman Hausherr
>            Priority: Major
>             Fix For: 2.0.20, 3.0.0 PDFBox
>
>         Attachments: pmc4531940.pdf
>
>
> the attached PDF is showing an exception when opened on PDFDebugger:
>  
> {{java.lang.RuntimeException: java.util.concurrent.ExecutionException: 
> java.lang.NullPointerException}}
> {{ 
> org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.done(PagePane.java:434)}}
> {{ sun.swing.AccumulativeRunnable.run(AccumulativeRunnable.java:112)}}
> {{ java.security.AccessController.doPrivileged(Native Method)}}
> {{ 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)}}
> {{Caused by: java.util.concurrent.ExecutionException: 
> java.lang.NullPointerException}}
> {{ 
> org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.done(PagePane.java:414)}}
> {{ sun.swing.AccumulativeRunnable.run(AccumulativeRunnable.java:112)}}
> {{ java.security.AccessController.doPrivileged(Native Method)}}
> {{ 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)}}
> {{Caused by: java.lang.NullPointerException: null}}
> {{ 
> org.apache.pdfbox.pdmodel.font.PDCIDFontType2.codeToGID(PDCIDFontType2.java:267)}}
> {{ 
> org.apache.pdfbox.pdmodel.font.PDType0Font.codeToGID(PDType0Font.java:547)}}
> {{ 
> org.apache.pdfbox.rendering.TTFGlyph2D.getGIDForCharacterCode(TTFGlyph2D.java:101)}}
> {{ 
> org.apache.pdfbox.rendering.TTFGlyph2D.getPathForCharacterCode(TTFGlyph2D.java:92)}}
> {{ org.apache.pdfbox.rendering.PageDrawer.drawGlyph2D(PageDrawer.java:468)}}
> {{ org.apache.pdfbox.rendering.PageDrawer.showFontGlyph(PageDrawer.java:449)}}
> {{ 
> org.apache.pdfbox.contentstream.PDFStreamEngine.showGlyph(PDFStreamEngine.java:785)}}
> {{ 
> org.apache.pdfbox.contentstream.PDFStreamEngine.showText(PDFStreamEngine.java:741)}}
> {{ 
> org.apache.pdfbox.contentstream.PDFStreamEngine.showTextString(PDFStreamEngine.java:601)}}
> {{ 
> org.apache.pdfbox.contentstream.operator.text.ShowText.process(ShowText.java:56)}}
> {{ 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:875)}}
> {{ 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:509)}}
> {{ 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:483)}}
> {{ 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:156)}}
> {{ org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:270)}}
> {{ org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:321)}}
> {{ 
> org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.doInBackground(PagePane.java:402)}}
> {{ 
> org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.doInBackground(PagePane.java:384)}}
> {{ java.lang.Thread.run(Thread.java:745)}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to