Skip to main content
peters41268099
Participant
November 2, 2018
Answered

Adobe Enable Protected Mode at startup

  • November 2, 2018
  • 1 reply
  • 1063 views

Hello,

I created a stamp you can put on a PDF document.

The stamp ask some questions and save the document in a folder.
Now i got the question 'Adobe needs write acces to save the document in the folder';

Is there a way to suppress this questions in the Javascript ?

In Adobe menu Edit - Preferences - Security (Enhanced) can you disable/enable the option 'Enable Protected Mode'.
When this option = Off then you don't get the message. When the option = On then you get the message.
So I want this option On but not the Write access message.

Thx

This topic has been closed for replies.
Correct answer Joel Geraci

You're not going to be able to suppress the message. You'll need to write your code in such a way that the file gets written to a safe path.

1 reply

Joel Geraci
Community Expert
Community Expert
November 2, 2018

The option to 'Enable Protected Mode' is not exposed to JavaScript... for obvious reasons. You wouldn't want a file to be able to turn it off and then do stuff that it shouldn't be able to do.

Take a look at the documentation under Safe Paths which describes which folders you can safely write to without warnings using JavaScript.

peters41268099
Participant
November 2, 2018

HI Joel,

I've searched and find on the internet that you have to use 'try & catch' but I want the 'write access error'.
I understand you can't disable the 'Protected mode at startup' by code.

But suppress the message ..... I tried a lot of options but  without result.

Try & catch notallowederror ........
So hopefully knows the command to suppress the error message.

Joel Geraci
Community Expert
Joel GeraciCommunity ExpertCorrect answer
Community Expert
November 2, 2018

You're not going to be able to suppress the message. You'll need to write your code in such a way that the file gets written to a safe path.