Tilman Hausherr created PDFBOX-4030:
---------------------------------------

             Summary: ClassCastException when matrix array has indirect objects
                 Key: PDFBOX-4030
                 URL: https://issues.apache.org/jira/browse/PDFBOX-4030
             Project: PDFBox
          Issue Type: Bug
          Components: PDModel
    Affects Versions: 2.0.8
            Reporter: Tilman Hausherr
            Assignee: Tilman Hausherr
             Fix For: 2.0.9, 3.0.0 PDFBox


{code}
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)
{code}

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




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to