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

ArrayIndexOutOfBoundsException while trying to get text from a page

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.20
    • Fix Version/s: 2.0.22, 3.0.0 PDFBox
    • Component/s: Parsing
    • Labels:
      None

      Description

       
      Array Inde

       

      java.lang.ArrayIndexOutOfBoundsException: Index 32 out of bounds for length 18    at org.apache.pdfbox.pdmodel.font.PDCIDFontType2.codeToGID (PDCIDFontType2.java:238) at org.apache.pdfbox.pdmodel.font.PDCIDFontType2.getWidthFromFont (PDCIDFontType2.java:311) at org.apache.pdfbox.pdmodel.font.PDType0Font.getWidthFromFont (PDType0Font.java:465) at org.apache.pdfbox.pdmodel.font.PDFont.getSpaceWidth (PDFont.java:551) at org.apache.pdfbox.text.LegacyPDFStreamEngine.showGlyph (LegacyPDFStreamEngine.java:276) at org.apache.pdfbox.contentstream.PDFStreamEngine.showText (PDFStreamEngine.java:741) at org.apache.pdfbox.contentstream.PDFStreamEngine.showTextString (PDFStreamEngine.java:602) at org.apache.pdfbox.contentstream.operator.text.ShowText.process (ShowText.java:56) at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator (PDFStreamEngine.java:932) at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators (PDFStreamEngine.java:510) at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream (PDFStreamEngine.java:484) at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage (PDFStreamEngine.java:156) at org.apache.pdfbox.text.LegacyPDFStreamEngine.processPage (LegacyPDFStreamEngine.java:139) at org.apache.pdfbox.text.PDFTextStripper.processPage (PDFTextStripper.java:391) at org.apache.pdfbox.text.PDFTextStripper.processPages (PDFTextStripper.java:319) at org.apache.pdfbox.text.PDFTextStripper.writeText (PDFTextStripper.java:266) at org.apache.pdfbox.text.PDFTextStripper.getText (PDFTextStripper.java:227)   

        Attachments

          Activity

            People

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              Dragos-Scio Dragos Ristache
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: