Description
Inspired by this complaint
http://stackoverflow.com/a/24432822/535646
I tried loading barcode fonts with PDFBox, with the command
PDTrueTypeFont.loadTTF()
With the file Code39.ttf that I get here
http://www.myfont.de/download.php?winfont=bar-code-39-lesbar&type=zip
I get this exception:
Exception in thread "main" java.lang.NullPointerException
at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.makeFontDescriptor(PDTrueTypeFont.java:328)
at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.<init>(PDTrueTypeFont.java:127)
at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:80)
Attachments
Attachments
Issue Links
- duplicates
-
PDFBOX-1790 NPE during PDTrueTypeFont.loadTTF() on Mac TrueType font lacking Windows-platformID CMAPEncodingEntry
- Closed
- relates to
-
PDFBOX-2166 AIOOBE with barcode ttf font
- Closed