Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.1.0
    • Component/s: FontBox
    • Labels:
      None

      Description

      Arjohn Kampman reported to users@pdfbox.apache.org the following CFF font parsing failure:

      java.lang.ArrayIndexOutOfBoundsException: 3
      at org.apache.fontbox.cff.CFFParser$IndexData.getBytes(CFFParser.java:585)
      at org.apache.fontbox.cff.CFFParser.parseFont(CFFParser.java:329)
      at org.apache.fontbox.cff.CFFParser.parse(CFFParser.java:65)
      at org.apache.pdfbox.pdmodel.font.PDType1CFont.ensureLoaded(PDType1CFont.java:290)
      at org.apache.pdfbox.pdmodel.font.PDType1CFont.getFontWidth(PDType1CFont.java:138)
      at org.apache.pdfbox.util.PDFStreamEngine.processEncodedText(PDFStreamEngine.java:323)
      at org.apache.pdfbox.util.operator.ShowText.process(ShowText.java:45)
      at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:552)
      at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:248)
      at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:207)
      at org.apache.pdfbox.util.PDFTextStripper.processPage(PDFTextStripper.java:367)
      at org.apache.pdfbox.util.PDFTextStripper.processPages(PDFTextStripper.java:291)
      at org.apache.pdfbox.util.PDFTextStripper.writeText(PDFTextStripper.java:247)
      at org.apache.pdfbox.util.PDFTextStripper.getText(PDFTextStripper.java:180)

      The problematic PDF document can be found at http://domex.nps.edu/corp/files/govdocs1/000/000163.pdf

        Attachments

        1. FontBox.patch
          1 kB
          Villu Ruusmann

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vfed Villu Ruusmann
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: