REMOVEDATAOBJECT ACROBAT READER

New Here ,
Aug 07, 2019

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();

})

}

Adobe Community Professional
Correct answer by Bernd Alheit | Adobe Community Professional

The documentation is here:

Acrobat DC SDK Documentation

TOPICS
Acrobat SDK and JavaScript

Views

85

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

REMOVEDATAOBJECT ACROBAT READER

New Here ,
Aug 07, 2019

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();

})

}

Adobe Community Professional
Correct answer by Bernd Alheit | Adobe Community Professional

The documentation is here:

Acrobat DC SDK Documentation

TOPICS
Acrobat SDK and JavaScript

Views

86

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 07, 2019 0
Adobe Community Professional ,
Aug 07, 2019

Copy link to clipboard

Copied

Did you read the documentation of the method removeDataObject? Does your PDF file have the correct rights?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 07, 2019 1
New Here ,
Aug 07, 2019

Copy link to clipboard

Copied

I didn't find an example for acrobat reader.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 07, 2019 0
Adobe Community Professional ,
Aug 07, 2019

Copy link to clipboard

Copied

The documentation is here:

Acrobat DC SDK Documentation

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 07, 2019 0
New Here ,
Aug 07, 2019

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 07, 2019 0
Adobe Community Professional ,
Aug 07, 2019

Copy link to clipboard

Copied

You can't apply the rights with Adobe Acrobat.

You need the server product AEM Forms.

AEM forms * Configuring Acrobat Reader DC extensions

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 07, 2019 0
Adobe Employee ,
Aug 07, 2019

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 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 07, 2019 0
New Here ,
Aug 07, 2019

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?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 07, 2019 0