You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2017/12/07 15:57:02 UTC

[jira] [Created] (PDFBOX-4030) ClassCastException when matrix array has indirect objects

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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org