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

Maruan Sahyoun commented on PDFBOX-2857:
----------------------------------------

The error message is expected and that's not a bug within PDFBox but a 
(current) limitation.

At this point in time there is no (easy) support for a filled out XFA form as 
one of the important features needed (incremental update - see PDFBOX-45) is 
currently only implemented for signing. Using low level features of PDFBox and 
extending the incremental signing you should be able to come up with a 
solution. The best is to start looking at how Adobe Reader/Adobe Acrobat save 
the file after the form has been filled out. Note that there are some 
differences between static XFA forms and dynamic XFA forms.

> Saving XFA document caused prompt saying Extended features has been disabled
> ----------------------------------------------------------------------------
>
>                 Key: PDFBOX-2857
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2857
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.8.9, 2.0.0
>         Environment: Windows, Linux
>            Reporter: tmjee
>         Attachments: sample.pdf
>
>
> Using the following code to read and write back a pdf (with xfa) caused the 
> newly written pdf when opened be prompted with 
> "This document enabled extended features in Adobe Reader. The document has 
> been changed since it was created and use of extended features is no longer 
> available. Please contact the author for the original version of this 
> document".
> {code:borderStyle=solid}
> File f1 = new File(...);
> PDDocument doc = PDDocument.load(f1);
> doc.setAllSecurityToBeRemoved(true);
> File f = new File(....); // output file
> try (FileOutputStream fos = new FileOutputStream(f)) {
>    doc.save(fos);
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to