You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/12/07 16:02:00 UTC
[jira] [Commented] (PDFBOX-4030) ClassCastException when matrix
array has indirect objects
[ https://issues.apache.org/jira/browse/PDFBOX-4030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16282060#comment-16282060 ]
ASF subversion and git services commented on PDFBOX-4030:
---------------------------------------------------------
Commit 1817387 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1817387 ]
PDFBOX-4030: accept indirect objects too
> 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
>
> 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org