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

NumberFormatException in CFFParser.readRealNumber

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.12, 1.8.13, 2.0.2, 2.0.3, 3.0.0 PDFBox
    • Fix Version/s: 1.8.13, 2.0.3, 3.0.0 PDFBox
    • Component/s: FontBox
    • Labels:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: