[ https://issues.apache.org/jira/browse/PDFBOX-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14244967#comment-14244967 ]
ASF subversion and git services commented on PDFBOX-1372: --------------------------------------------------------- Commit 1645090 from [~jahewson] in branch 'pdfbox/trunk' [ https://svn.apache.org/r1645090 ] PDFBOX-1372: Handle monospace width for last hmtx entry > 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.6.0, 2.0.0 > Environment: Windows 7, WebLogic 10.3.2, jdk160_14_R27.6.5-32. > Reporter: wentao > Assignee: John Hewson > Fix For: 2.0.0 > > Attachments: CODE128.TTF, FRE3OF9X.TTF, index128.jsp > > > I downloaded a ttf from http://www.jtbarton.com/Barcodes/code128.ttf and > tried to use this with pdfbox 1.6.0 in my jsp. > it returns below error > java.lang.NullPointerException > at > org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadDescriptorDictionary(PDTrueTypeFont.java:339) > at > org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:164) > at > org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:140) > at > org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:127) -- This message was sent by Atlassian JIRA (v6.3.4#6332)