[ https://issues.apache.org/jira/browse/PDFBOX-3488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15477594#comment-15477594 ]
Tilman Hausherr edited comment on PDFBOX-3488 at 9/9/16 5:01 PM: ----------------------------------------------------------------- The change I just did not not revert "your" issue, which dealt with an empty glyf table. However compared to 2.0.2 the 2.0.3 version would show nothing in rendering this file, while the 2.0.2 showed a substitute font. I'm not yet sure what to, but I just don't want to have the risk of a NullPointerException. was (Author: tilman): The change I just did not not revert "your" issue, which dealt with an empty glyf table. However compared to 2.0.2 the 2.0.3 version would show nothing in rendering, while the 2.0.2 showed a substitute font. I'm not yet sure what to, but I just don't want to have the risk of a NullPointerException. > NullPointerException in PDTrueTypeFont.java if glyf table is missing > -------------------------------------------------------------------- > > Key: PDFBOX-3488 > URL: https://issues.apache.org/jira/browse/PDFBOX-3488 > Project: PDFBox > Issue Type: Bug > Components: FontBox, Rendering > Affects Versions: 2.0.2, 2.0.3 > Reporter: Tilman Hausherr > > {code} > Caused by: java.lang.NullPointerException: null > > org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.getPath(PDTrueTypeFont.java:444) > > org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.getNormalizedPath(PDTrueTypeFont.java:502) > > org.apache.pdfbox.rendering.GlyphCache.getPathForCharacterCode(GlyphCache.java:71) > org.apache.pdfbox.rendering.PageDrawer.showFontGlyph(PageDrawer.java:350) > > org.apache.pdfbox.contentstream.PDFStreamEngine.showGlyph(PDFStreamEngine.java:756) > > org.apache.pdfbox.debugger.pagepane.DebugPageDrawer.showGlyph(DebugPageDrawer.java:59) > > org.apache.pdfbox.contentstream.PDFStreamEngine.showText(PDFStreamEngine.java:713) > > org.apache.pdfbox.contentstream.PDFStreamEngine.showTextString(PDFStreamEngine.java:572) > > org.apache.pdfbox.contentstream.operator.text.ShowText.process(ShowText.java:55) > {code} > The cause is the change in PDFBOX-3395; previously PDFBox would consider the > font to be bad and replace it. Now we don't do that because the glyf table is > not always needed. > I'm throwing an exception for now but a better solution should be found. > Adobe Reader displays glyphs. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org