Skip to main content
Participant
August 7, 2019
Answered

REMOVEDATAOBJECT ACROBAT READER

  • August 7, 2019
  • 2 replies
  • 692 views

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 >= 😎 {

ImportAutoTXT_BB=app.trustedFunction(function() {

app.beginPriv();

///

// Suppression du fichier txt intégré

this.removeDataObject("fichierTXT");

///

app.endPriv();

})

}

This topic has been closed for replies.
Correct answer Bernd Alheit

The documentation is here:

Acrobat DC SDK Documentation

2 replies

AkanchhaS8194121
Legend
August 7, 2019

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 

Participant
August 7, 2019

I think I'm in the right place. Do you have a link to propose to me to move my request?

Bernd Alheit
Community Expert
Community Expert
August 7, 2019

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

Participant
August 7, 2019

I didn't find an example for acrobat reader.

Bernd Alheit
Community Expert
Bernd AlheitCommunity ExpertCorrect answer
Community Expert
August 7, 2019

The documentation is here:

Acrobat DC SDK Documentation