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

ClassCastException when matrix array has indirect objects

    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

      ClassCastException: org.apache.pdfbox.cos.COSObject cannot be cast to org.apache.pdfbox.cos.COSNumber
          org.apache.pdfbox.util.Matrix.<init>(Matrix.java:60)
          org.apache.pdfbox.pdmodel.graphics.pattern.PDAbstractPattern.getMatrix(PDAbstractPattern.java:135)
      

      Solution: replace get() with getObject(). I created the attached file by modifying COSWriter.

        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: