[
https://issues.apache.org/jira/browse/PDFBOX-2857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Maruan Sahyoun updated PDFBOX-2857:
-----------------------------------
Component/s: AcroForm
> 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: New Feature
> Components: AcroForm
> 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]