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

IndexOutOfBoundsException when XObject form matrix has only 5 elements

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.13, 2.0.8
    • 1.8.14, 2.0.9, 3.0.0 PDFBox
    • PDModel
    • None

    Description

      java.lang.IndexOutOfBoundsException: Index: 5, Size: 5
          java.util.ArrayList.rangeCheck(Unknown Source)
          java.util.ArrayList.get(Unknown Source)
          org.apache.pdfbox.cos.COSArray.get(COSArray.java:210)
          org.apache.pdfbox.util.Matrix.<init>(Matrix.java:65)
          org.apache.pdfbox.pdmodel.graphics.form.PDFormXObject.getMatrix(PDFormXObject.java:218)
          org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:466)
          org.apache.pdfbox.contentstream.PDFStreamEngine.showForm(PDFStreamEngine.java:185)
      

      The file has this "matrix": /Matrix[ 0 0 5805.68 0 0]

      The XObject form has an empty stream.

      The file produced by "Microsoft® Excel® 2010". I cannot share it.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: