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

Truetype font loaded in 1.6.0 (and previous), does not load in 1.7.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.0
    • 1.7.1
    • PDModel
    • MAC OS Tiger

    Description

      I have been using a particular TrueType font with
      many previous versions of PDFBox. It loaded and worked fine
      up to version 1.6.0. Now at level 1.7.0, I get a
      NullPointerException when attempting to load this
      TTF file:

      Exception: java.lang.NullPointerException
      java.lang.NullPointerException
      at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadDescriptorDictionary(PDTrueTypeFont.java:319)
      at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:166)
      at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:142)
      at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:129)
      at test.<init>(test.java:23)
      at test.main(test.java:36)

      My testcase (simply performing a loadTTF()) works with 1.6.0
      of PDFBox. This font is certainly an oldie, but it does validate
      using "Font Book" on my Mac. That program looks through a TrueType font,
      checking all internal tables for correctness.

      I have attached a copy of the .ttf file.

      Attachments

        1. prinoorg.ttf
          81 kB
          Bob Swanson

        Issue Links

          Activity

            People

              lehmi Andreas Lehmkühler
              wwi Bob Swanson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: