You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2014/09/09 21:10:28 UTC

[jira] [Updated] (PDFBOX-2334) codeToGID NPE

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

Tilman Hausherr updated PDFBOX-2334:
------------------------------------
    Attachment: PDFBOX-2334-205746.pdf

> codeToGID NPE
> -------------
>
>                 Key: PDFBOX-2334
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2334
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.0
>            Reporter: Tilman Hausherr
>         Attachments: PDFBOX-2334-205746.pdf
>
>
> I get an NPE with the attached file:
> {code}
> Sep 09, 2014 9:05:40 PM org.apache.pdfbox.pdmodel.font.PDSimpleFont toUnicode
> WARNUNG: No Unicode mapping for character code 82 in font Arial
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.codeToGID(PDTrueTypeFont.java:291)
> 	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.getWidthFromFont(PDTrueTypeFont.java:250)
> 	at org.apache.pdfbox.pdmodel.font.PDFont.getWidth(PDFont.java:216)
> 	at org.apache.pdfbox.pdmodel.font.PDFont.getDisplacement(PDFont.java:182)
> 	at org.apache.pdfbox.util.PDFStreamEngine.showText(PDFStreamEngine.java:449)
> {code}
> Don't know if it is related to PDFBOX-2310.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)