Hello,
I tried to load the attached TTF using the following code.....
document = new PDDocument() ;/*PDDocument.load(pdfFile);*/
PDFont font = PDTrueTypeFont.loadTTF(document, "FREE3OF9.TTF" );
I got the following error:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 42
at
org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadDescriptorDictionary(PDTrueTypeFont.java:406)
at
org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:198)
at
org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:174)
at
org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:155)
at
org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:142)
at
org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:129)
at test.Test.printUsingPDFBox(Test.java:212)
at test.Test.main(Test.java:246)
I did some research and found an existing bug with similar symptoms.
https://issues.apache.org/jira/browse/PDFBOX-1335?page=com.atlassian.streams.streams-jira-plugin:activity-stream-issue-tab
Anyone have any fixes or workarounds that I can use?
Thanks,
Swami.