Skip to main content
Participant
Aug 7, 2019 10:31 AM UTC
Answered

REMOVEDATAOBJECT ACROBAT READER

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 is closed to new replies. Start a new post to keep the conversation going.
Bernd Alheit
Bernd AlheitCorrect answer
Community Expert
Aug 7, 2019 12:10 PM UTC

The documentation is here:

Acrobat DC SDK Documentation

7 replies

AkanchhaS8194121
Legend
Aug 7, 2019 11:26 AM UTC

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 

Translate
Participant
Aug 7, 2019 11:57 AM UTC

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

Translate
Bernd Alheit
Community Expert
Community Expert
Aug 7, 2019 11:17 AM UTC

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

Translate
Participant
Aug 7, 2019 11:58 AM UTC

I didn't find an example for acrobat reader.

Translate
Bernd Alheit
Community Expert
Bernd AlheitCommunity ExpertCorrect answer
Community Expert
Aug 7, 2019 12:10 PM UTC

The documentation is here:

Acrobat DC SDK Documentation

Translate