You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John Hewson (JIRA)" <ji...@apache.org> on 2014/12/13 00:23:15 UTC
[jira] [Comment Edited] (PDFBOX-1372) NullPointerException with
loadDescriptorDictionary
[ https://issues.apache.org/jira/browse/PDFBOX-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14244970#comment-14244970 ]
John Hewson edited comment on PDFBOX-1372 at 12/12/14 11:22 PM:
----------------------------------------------------------------
The NPE was due to incorrect handling of the hmtx table. Note that the font still cannot be embedded because it doesn't have a cmap table, but that's not our problem to fix.
was (Author: jahewson):
The problem was due to incorrect handling of the hmtx table. Note that the font still cannot be embedded because it doesn't have a cmap table, but that's not our problem to fix.
> 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)