Skip to main content
peters41268099
Participant
Nov 2, 2018 4:42 PM UTC
Answered

Adobe Enable Protected Mode at startup

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 is closed to new replies. Start a new post to keep the conversation going.
Joel Geraci
Joel GeraciCorrect answer
Community Expert
Nov 2, 2018 8:18 PM UTC

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.

3 replies

Joel Geraci
Community Expert
Community Expert
Nov 2, 2018 4:58 PM UTC

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.

Translate
peters41268099
Participant
Nov 2, 2018 7:38 PM UTC

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.

Translate
Joel Geraci
Community Expert
Joel GeraciCommunity ExpertCorrect answer
Community Expert
Nov 2, 2018 8:18 PM UTC

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.

Translate