Copy link to clipboard
Copied
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
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.