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 2017/02/12 16:06:42 UTC

[jira] [Comment Edited] (PDFBOX-3684) PDF box crashes on mal-formed files

    [ https://issues.apache.org/jira/browse/PDFBOX-3684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15862851#comment-15862851 ] 

Maruan Sahyoun edited comment on PDFBOX-3684 at 2/12/17 4:05 PM:
-----------------------------------------------------------------

The error message is quite clear 

{code}
Error: can't merge source document containing dynamic XFA form content.
{code}

Background: a PDF containing a dynamic XFA content will be rendered at runtime using Adobe Reader, Acrobat or the software supporting that. PDF is only a shell containing a form description. There are no predefined visual PDF objects to represent the page. You'd need to render the XFA into a regular PDF. After that you can merge it.

If you try to merge the documents using Adobe Acrobat you'll get a similar result (although not an IOException - but the file is skipped).

*So the PDFBox behavior in this case is intended!*



was (Author: msahyoun):
The error message is quite clear 

{code}
Error: can't merge source document containing dynamic XFA form content.
{code}

Background: a PDF containing a dynamic XFA content will be rendered at runtime using Adobe Reader, Acrobat or the software supporting that. PDF is only a shell containing a form description. There are no predefined visual PDF objects to represent the page. You'd need to render the XFA into a regular PDF. After that you can merge it.

If you try to merge the documents using Adobe Acrobat you'll get a similar result (although not an IOException - but the file is skipped).


> PDF box crashes on mal-formed files
> -----------------------------------
>
>                 Key: PDFBOX-3684
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3684
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.0.4
>            Reporter: Andrii Radistao
>         Attachments: certificate-of-analysis.pdf, questionario-sulle.pdf, radistao-pdfbox-merge-bug.zip
>
>
> I supply 2 PDF files (_certificate-of-analysis.pdf_ and _questionario-sulle.pdf_) which cause an exception if i try to merge them using {{PDFMergerUtility}}.
> I've implemented code examples which run to the exceptions:
> https://bitbucket.org/radistao/pdfbox-merge-bug/
> or just take the same sources from the attached [radistao-pdfbox-merge-bug.zip|https://issues.apache.org/jira/secure/attachment/12852256/radistao-pdfbox-merge-bug.zip]
> Those 2 files are included into the repository ({{test/resources/}}).



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org