Skip to main content
Participant
October 24, 2023
Answered

this.saveAs has no permission

  • October 24, 2023
  • 2 replies
  • 905 views

I used Adobe Acrobat Pro and added the javascript code: this.saveAs("/D/Downloads/file.pdf"); As a result, an error occurred during debugging: NotAllowedError: The security settings prohibit access to this property or method.Doc.saveAs:1:AcroForm:Button1:Annot1:MouseUp:Action1

This topic has been closed for replies.
Correct answer try67

This method has to be used from a privileged context, such as a trusted function in a folder-level script.

2 replies

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
October 24, 2023

This method has to be used from a privileged context, such as a trusted function in a folder-level script.

Participant
October 25, 2023

thanks!

Bernd Alheit
Community Expert
Community Expert
October 24, 2023

Look at the documentation of the method saveAs.