Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-2166

AIOOBE with barcode ttf font

    XMLWordPrintableJSON

Details

    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 free3of9.ttf that I can get here
      http://www.barcodesinc.com/free-barcode-font/
      I get this exception:

      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)
      

      Attachments

        1. free3of9.ttf
          5 kB
          Tilman Hausherr

        Issue Links

          Activity

            People

              tilman Tilman Hausherr
              tilman Tilman Hausherr
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: