You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Maruan Sahyoun (JIRA)" <ji...@apache.org> on 2014/09/19 23:58:34 UTC

[jira] [Comment Edited] (PDFBOX-2334) codeToGID NPE

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

Maruan Sahyoun edited comment on PDFBOX-2334 at 9/19/14 9:58 PM:
-----------------------------------------------------------------

[~jahewson] reg. the TODO in your source comment - Symbol and ZapfDingbats have their own encoding as defined in Annex D.5 and D.6 of the ISO spec. 


was (Author: msahyoun):
[~jahewson] reg. the TODO in you comment - Symbol and ZapfDingbats have their own encoding as defined in Annex D.5 and D.6 of the ISO spec. 

> 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
>            Assignee: John Hewson
>             Fix For: 2.0.0
>
>         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)