Harippriya Parameswaran created PDFBOX-1568: -----------------------------------------------
Summary: Summary : Null Pointer Exception while loading few TrueTypeFont. Key: PDFBOX-1568 URL: https://issues.apache.org/jira/browse/PDFBOX-1568 Project: PDFBox Issue Type: Bug Components: FontBox, JempBox Affects Versions: 1.7.0 Environment: Mac OS, Linux, Java Reporter: Harippriya Parameswaran Fix For: 1.7.0 I tried loading few fonts Angelina, PreludeFLF, Miama in PDFBox 1.7.0. I am getting Null Pointer Exception in the PDFBox, the error is given below. I used loadTTF method. String fontFile = angelina.ttf; PDFont pdffont = PDTrueTypeFont.loadTTF(doc, Sample.class.getClassLoader().getResource(fontFile).openStream()); ERROR [com.sample.SampleImpl] (http--100.0.0.1-8080-2) Could not load PDTrueTypeFont for angelina.ttf: java.lang.NullPointerException at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadDescriptorDictionary(PDTrueTypeFont.java:354) at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:171) at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:154) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira