Copy link to clipboard
Copied
Hello,
I want to delete an attached file from a pdf using javascript AND Acrobat Reader.
I have this javascript copy in the Javacript directory of Acrobat Reader but the attached file is not deleted when the PDF is opened.
I don't have any error messages and I'm sure the script is running app.alert("test")
Could you help me?
Thank you. Thank you.
if (app.formsVersion >= 8) {
ImportAutoTXT_BB=app.trustedFunction(function() {
app.beginPriv();
///
// Suppression du fichier txt intégré
this.removeDataObject("fichierTXT");
///
app.endPriv();
})
}
The documentation is here:
Copy link to clipboard
Copied
Did you read the documentation of the method removeDataObject? Does your PDF file have the correct rights?
Copy link to clipboard
Copied
I didn't find an example for acrobat reader.
Copy link to clipboard
Copied
The documentation is here:
Copy link to clipboard
Copied
ok thank you.
how is it possible to create Methods for applying usage rights with acrobat DC PRO?
thank you
Copy link to clipboard
Copied
You can't apply the rights with Adobe Acrobat.
You need the server product AEM Forms.
Copy link to clipboard
Copied
Your query is related to the java script. We have an individual space for JavaScript related queries. Since we don't have expertise in JavaScript, so moving your query to JavaScript​ page, so that our experts will look into it. They will tell you what best can be done in this.
Thanks,
Akanchha
Copy link to clipboard
Copied
I think I'm in the right place. Do you have a link to propose to me to move my request?