You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Maruan Sahyoun (JIRA)" <ji...@apache.org> on 2016/12/29 10:29:58 UTC
[jira] [Assigned] (PDFBOX-3642) java.lang.ClassCastException is
thrown when flattening form with a picture
[ https://issues.apache.org/jira/browse/PDFBOX-3642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maruan Sahyoun reassigned PDFBOX-3642:
--------------------------------------
Assignee: Maruan Sahyoun
> java.lang.ClassCastException is thrown when flattening form with a picture
> ---------------------------------------------------------------------------
>
> Key: PDFBOX-3642
> URL: https://issues.apache.org/jira/browse/PDFBOX-3642
> Project: PDFBox
> Issue Type: Bug
> Components: AcroForm
> Affects Versions: 2.0.4
> Reporter: rumburak
> Assignee: Maruan Sahyoun
> Fix For: 2.0.5, 2.1.0
>
> Attachments: OpenOfficeFormWithPicture.pdf
>
>
> Without picture in the form flattening works ok. With picture the following exception is thrown:
> Exception in thread "main" java.lang.ClassCastException: org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject cannot be cast to org.apache.pdfbox.pdmodel.graphics.form.PDFormXObject
> at org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm.resolveNeedsTranslation(PDAcroForm.java:726)
> at org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm.flatten(PDAcroForm.java:276)
> at org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm.flatten(PDAcroForm.java:192)
> at test.FlattenIssue.main(FlattenIssue.java:27)
> Attaching source PDF form (generated in open office).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org