Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.1, 2.0.2, 2.0.3
-
None
Description
I was trying to follow up on the issues in our system and found that some PDF files threw ERRORs. These PDFs are produced by a publishing system and that system seems to add fonts when you change to them and add them even though they are never used. Or only space is used. Then they add this font with an empty glyf table. This results in that errors are thrown on files that are fine.
Line 310 in TTFParser removes empty glyf tables.
// skip tables with zero length
if (table.getLength() == 0)
return table;
Line 215 of TTFParser throws exception when glyf table is missing.
if (font.getGlyph() == null)
Attachments
Issue Links
- duplicates
-
PDFBOX-3488 NullPointerException in PDTrueTypeFont.java if glyf table is missing
- Closed