You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "tmjee (JIRA)" <ji...@apache.org> on 2015/07/08 07:02:05 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 ]

tmjee updated PDFBOX-2857:
--------------------------
    Description: 
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}

  was:
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:title=Bar.java|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}


> 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
>
> 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org