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

NumberFormatException in CFFParser.readRealNumber

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.12, 1.8.13, 2.0.2, 2.0.3, 3.0.0 PDFBox
    • 1.8.13, 2.0.3, 3.0.0 PDFBox
    • FontBox
    • None

    Description

      Caused by: java.lang.NumberFormatException: empty String
          sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1020)
          java.lang.Double.valueOf(Double.java:504)
          org.apache.fontbox.cff.CFFParser.readRealNumber(CFFParser.java:390)
          org.apache.fontbox.cff.CFFParser.readEntry(CFFParser.java:270)
          org.apache.fontbox.cff.CFFParser.readDictData(CFFParser.java:236)
          org.apache.fontbox.cff.CFFParser.parseFont(CFFParser.java:397)
          org.apache.fontbox.cff.CFFParser.parse(CFFParser.java:141)
          org.apache.fontbox.cff.CFFParser.parse(CFFParser.java:68)
          org.apache.pdfbox.pdmodel.font.PDType1CFont.<init>(PDType1CFont.java:102)
          org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:60)
      

      I've tried several things, and returning 0 resulted in the same rendering as Adobe Reader.

      Attachments

        1. bugzilla1068432.pdf
          2 kB
          Tilman Hausherr

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: