[ 
https://issues.apache.org/jira/browse/PDFBOX-4030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tilman Hausherr updated PDFBOX-4030:
------------------------------------
    Fix Version/s: 1.8.14

> 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: 1.8.13, 2.0.8
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>             Fix For: 1.8.14, 2.0.9, 3.0.0 PDFBox
>
>         Attachments: PDFBOX-4030-indirect.pdf
>
>
> {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