You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2014/06/27 18:09:25 UTC

[jira] [Created] (PDFBOX-2166) AIOOB Exception with barcode ttf font

Tilman Hausherr created PDFBOX-2166:
---------------------------------------

             Summary: AIOOB Exception with barcode ttf font
                 Key: PDFBOX-2166
                 URL: https://issues.apache.org/jira/browse/PDFBOX-2166
             Project: PDFBox
          Issue Type: Bug
    Affects Versions: 2.0.0
            Reporter: Tilman Hausherr


Inspired by this complaint
http://stackoverflow.com/a/24432822/535646
I tried loading barcode fonts with PDFBox, with the command
{code}
PDTrueTypeFont.loadTTF()
{code}

With the file free3of9.ttf that I can get here 
http://www.barcodesinc.com/free-barcode-font/
I get this exception:
{code}
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 42
	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.makeFontDescriptor(PDTrueTypeFont.java:337)
	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.<init>(PDTrueTypeFont.java:127)
	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:80)
{code}




--
This message was sent by Atlassian JIRA
(v6.2#6252)