[
https://issues.apache.org/jira/browse/PDFBOX-2169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14048465#comment-14048465
]
John Hewson edited comment on PDFBOX-2169 at 7/1/14 3:35 AM:
-------------------------------------------------------------
Ok, I got the correct error message from Jenkins, which indicates that there
are no TTF fonts installed on the system to use as a fallback. I've therefore
added a "last resort" built-in TTF fallback font, [Nimbus Sans
L|http://en.wikipedia.org/wiki/Nimbus_Sans#Nimbus_Sans_L], which is a clone of
Adobe's Helvetica.
Nimbus Sans L is under the LPPL license which appears to be compatible with
Apache requirements, see below:
Fonts are under LPPL as of 2009: http://www.tug.org/fonts/lppl-urw.txt
Fonts mentioned in above link:
http://svn.ghostscript.com/ghostscript/trunk/urw-fonts/
Text of the LPPL: http://en.wikipedia.org/wiki/LaTeX_Project_Public_License
Added in [r1606972|http://svn.apache.org/r1606972].
was (Author: jahewson):
Ok, I got the correct error message from Jenkins, which indicates that there
are no TTF fonts installed on the system to use as a fallback. I've therefore
added a "last resort" built-in TTD fallback font, [Nimbus Sans
L|http://en.wikipedia.org/wiki/Nimbus_Sans#Nimbus_Sans_L], which is a clone of
Adobe's Helvetica.
Nimbus Sans L is under the LPPL license which appears to be compatible with
Apache requirements, see below:
Fonts are under LPPL as of 2009: http://www.tug.org/fonts/lppl-urw.txt
Fonts mentioned in above link:
http://svn.ghostscript.com/ghostscript/trunk/urw-fonts/
Text of the LPPL: http://en.wikipedia.org/wiki/LaTeX_Project_Public_License
Added in [r1606972|http://svn.apache.org/r1606972].
> 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)