Details
Description
Array index out of bounds attempting to load true type font. Statement that failed is...
PDTrueTypeFont.loadTTF(document, "/usr/share/fonts/truetype/liberation/LiberationMono-Regular.ttf");
Error is
java.lang.ArrayIndexOutOfBoundsException: 5 at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadDescriptorDictionary(PDTrueTypeFont.java:418)
at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:201)
at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:177)
at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:158)
at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:145)
at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:132)
... Please accept apologies if this is a user error. Font file is as installed by Ubuntu, exists and is viewable. Changing the file name produces 'no such file or directory', as expected, so pretty sure it has found the file.
Attachments
Issue Links
- duplicates
-
PDFBOX-1664 NullPointerException in PDType1Font.java
- Closed