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

IndexOutOfBoundsException when XObject form matrix has only 5 elements

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.13, 2.0.8
    • Fix Version/s: 1.8.14, 2.0.9, 3.0.0 PDFBox
    • Component/s: PDModel
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: