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 2020/11/01 17:45:00 UTC

[jira] [Updated] (PDFBOX-2857) Saving XFA document caused prompt saying Extended features has been disabled

     [ https://issues.apache.org/jira/browse/PDFBOX-2857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maruan Sahyoun updated PDFBOX-2857:
-----------------------------------
    Fix Version/s: 3.0.0 PDFBox
                   2.0.22

> 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: Toby Jee
>            Priority: Major
>             Fix For: 2.0.22, 3.0.0 PDFBox
>
>         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
(v8.3.4#803005)

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