Skip to main content
Participant
November 10, 2023
Question

Disable Acrobat Protection to use Javascript

  • November 10, 2023
  • 1 reply
  • 1069 views

Hi, i have a project, in this projet i have differents documents. One is an excel with two columns. I have also a folder with a lot of pdf with differents names. In the excel, the first column is already the name of all the pdf in the folder. The second column is a text to be write at the top of each pdf. My problem is, when i try to make a javascript automatic function, security problems blocked me like to use app.browsefordocs() or others. I have tried different solution but i failed everytime. Please help me.

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
November 10, 2023

There's no such method called browsefordocs, or browseForDocs... There is one called browseForDoc, though.

What exactly are you trying to achieve?

Participant
November 10, 2023

Yes i want to use app.browseForDocs but an error appear about settings of the protection who blocked this function. I have also tried to disable all the protection after but same error appear...

Participant
November 10, 2023

Error: NotAllowedError: Les paramètres de protection interdisent l'accès à cette propriété ou à cette méthode.
App.openDoc:2:AcroForm:Bouton2:Annot1:MouseUp:Action1

The example is just for open a doc. (Its in french sorry...)