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/07/01 02:41:24 UTC
[jira] [Resolved] (PDFBOX-2169) NPE in
PDTrueTypeFont.makeFontDescriptor
[ https://issues.apache.org/jira/browse/PDFBOX-2169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Hewson resolved PDFBOX-2169.
---------------------------------
Resolution: Fixed
What we're seeing here is that now that TrueType fonts are being loaded from disk we're encountering bugs in the original implementation of PDTrueType font. Fixing this properly requires refactoring PDFont which is underway in PDFBOX-2149. For now I added a workaround in [r1606956|http://svn.apache.org/r1606956].
> NPE in PDTrueTypeFont.makeFontDescriptor
> ----------------------------------------
>
> Key: PDFBOX-2169
> URL: https://issues.apache.org/jira/browse/PDFBOX-2169
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Tilman Hausherr
> Assignee: John Hewson
> Attachments: 000153.pdf
>
>
> The attached file brings this exception when rendering or when extracting text
> {code}
> java.lang.NullPointerException
> at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.makeFontDescriptor(PDTrueTypeFont.java:161)
> at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.getFontDescriptor(PDTrueTypeFont.java:150)
> at org.apache.pdfbox.pdmodel.font.PDFont.getFontWidth(PDFont.java:814)
> at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.getFontWidth(PDTrueTypeFont.java:382)
> at org.apache.pdfbox.pdmodel.font.PDFont.getFontWidth(PDFont.java:312)
> at org.apache.pdfbox.util.PDFStreamEngine.processEncodedText(PDFStreamEngine.java:377)
> at org.apache.pdfbox.util.operator.ShowText.process(ShowText.java:44)
> at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:508)
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)