wentao created PDFBOX-1372:
------------------------------
Summary: NullPointerException with loadDescriptorDictionary
Key: PDFBOX-1372
URL: https://issues.apache.org/jira/browse/PDFBOX-1372
Project: PDFBox
Issue Type: Bug
Components: PDModel
Affects Versions: 1.7.1
Environment: Windows 7, WebLogic 10.3.2, jdk160_14_R27.6.5-32.
Reporter: wentao
I downloaded a ttf from http://www.jtbarton.com/Barcodes/code128.ttf and tried
to use this with pdfbox 1.7.1 in my jsp.
it returns below error
<Aug 1, 2012 11:08:50 AM PDT> <Error> <HTTP> <BEA-101020> <[ServletContext@69818
19[app:myPDFBoxWeb module:myPDFBoxWeb path:/myPDFBoxWeb spec-version:2.5]] Servl
et failed with Exception
java.lang.NullPointerException
at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadDescriptorDictionar
y(PDTrueTypeFont.java:403)
at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.
java:198)
at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.
java:174)
at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.
java:155)
at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.
java:142)
Truncated. see log file for complete stacktrace
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira