Tilman Hausherr created PDFBOX-2335:
---------------------------------------

             Summary: NPE in DictionaryEncoding constructor
                 Key: PDFBOX-2335
                 URL: https://issues.apache.org/jira/browse/PDFBOX-2335
             Project: PDFBox
          Issue Type: Bug
          Components: FontBox
            Reporter: Tilman Hausherr
             Fix For: 2.0.0


I get an NPE with the attached file:
{code}
Sep 09, 2014 9:16:57 PM org.apache.pdfbox.pdmodel.font.PDType1Font <init>
WARNUNG: Using fallback font 'TimesNewRomanPSMT' for 'ZapfDingbats'
Exception in thread "main" java.lang.NullPointerException
        at 
org.apache.pdfbox.encoding.DictionaryEncoding.<init>(DictionaryEncoding.java:91)
        at 
org.apache.pdfbox.pdmodel.font.PDSimpleFont.readEncoding(PDSimpleFont.java:126)
        at 
org.apache.pdfbox.pdmodel.font.PDType1Font.<init>(PDType1Font.java:256)
        at 
org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:65)
        at org.apache.pdfbox.pdmodel.PDResources.getFonts(PDResources.java:171)
        at 
org.apache.pdfbox.util.PDFStreamEngine.getFonts(PDFStreamEngine.java:556)
        at 
org.apache.pdfbox.util.operator.text.SetTextFont.process(SetTextFont.java:48)
{code}




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

Reply via email to