• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Adobe Enable Protected Mode at startup

New Here ,
Nov 02, 2018 Nov 02, 2018

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

TOPICS
Acrobat SDK and JavaScript

Views

552

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 02, 2018 Nov 02, 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.

Votes

Translate

Translate
Community Expert ,
Nov 02, 2018 Nov 02, 2018

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 02, 2018 Nov 02, 2018

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 02, 2018 Nov 02, 2018

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines