Tilman Hausherr created PDFBOX-2334:
---------------------------------------
Summary: 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
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)