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

Do I want to give a guided action with JavaScript access to the filesystem?

New Here ,
Jun 03, 2025 Jun 03, 2025

I've been creating fillable forms for my work. I've created guided actions with JavaScript to set a specific font and font size for all fields.

 

When I select the guided action and 'start' I get the following security warning:

 

"This operation required Acrobat to have write access to the filesystem. Do you want to allow this operation?"

 

Should I allow this? Are there any security risks if I allow the operation and distribute the forms to my colleagues and the public?

 

Cheers 🙂

TOPICS
JavaScript , PDF forms
153
Translate
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
1 ACCEPTED SOLUTION
Adobe Employee ,
Jun 04, 2025 Jun 04, 2025
LATEST

Hi @Dynamic_multitalent5984,

This message is triggered not directly by Acrobat, but by the JavaScript code being executed within it, especially when that script tries to access the file system (e.g., saving files, reading paths, or modifying locations outside trusted folders). Acrobat, acting cautiously, prompts the user for explicit permission.

 

Why This Message Appears:

“Do you want to give a guided action with JavaScript access to the file system?”

 

This warning is Acrobat’s JavaScript security sandbox kicking in. It’s designed to prevent malicious scripts from accessing local or network files without your knowledge.

 

The script is likely doing something like (as you know already):

  • Saving a PDF automatically

  • Accessing or writing to a specific directory

  • Creating or modifying file names/locations dynamically

Since the script invokes Acrobat to perform these actions, Acrobat displays the prompt, but the root cause is the JavaScript instruction in the workflow.

 

 

How to Handle It (If You Trust the Script):

 

1. Add a Trusted Folder Location:

  • Open Edit > Preferences > JavaScript > JavaScript Security

  • Click “Add Folder Path.”

  • Add the folder from which the script runs or writes files.

  • This lets Acrobat run scripts without asking every time.

 

2. Digitally Sign the Action (for Guided Actions)(In case it is not designed by you):

  • If it’s an Action Wizard/Guided Action, you can digitally sign and trust it.

  • Go to Action Wizard > Manage Actions, select the action, and check its source and security.

 

3. Use app.trustedFunction() properly (for advanced users/developers):

  • Developers writing the script can wrap file system calls inside app.trustedFunction() with proper trust policies. But this must be pre-approved and can’t override end-user security settings automatically.

 

Acrobat’s Security Philosophy:

Adobe’s Acrobat JavaScript environment prioritizes user safety. Any script that performs potentially invasive actions must be either explicitly trusted by the user or executed from a verified environment.

 

I hope that answers your question and provides you with the background on the prompt. 


~Tariq

View solution in original post

Translate
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 ,
Jun 04, 2025 Jun 04, 2025

Have you a save step in the guided action?

Translate
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
Adobe Employee ,
Jun 04, 2025 Jun 04, 2025
LATEST

Hi @Dynamic_multitalent5984,

This message is triggered not directly by Acrobat, but by the JavaScript code being executed within it, especially when that script tries to access the file system (e.g., saving files, reading paths, or modifying locations outside trusted folders). Acrobat, acting cautiously, prompts the user for explicit permission.

 

Why This Message Appears:

“Do you want to give a guided action with JavaScript access to the file system?”

 

This warning is Acrobat’s JavaScript security sandbox kicking in. It’s designed to prevent malicious scripts from accessing local or network files without your knowledge.

 

The script is likely doing something like (as you know already):

  • Saving a PDF automatically

  • Accessing or writing to a specific directory

  • Creating or modifying file names/locations dynamically

Since the script invokes Acrobat to perform these actions, Acrobat displays the prompt, but the root cause is the JavaScript instruction in the workflow.

 

 

How to Handle It (If You Trust the Script):

 

1. Add a Trusted Folder Location:

  • Open Edit > Preferences > JavaScript > JavaScript Security

  • Click “Add Folder Path.”

  • Add the folder from which the script runs or writes files.

  • This lets Acrobat run scripts without asking every time.

 

2. Digitally Sign the Action (for Guided Actions)(In case it is not designed by you):

  • If it’s an Action Wizard/Guided Action, you can digitally sign and trust it.

  • Go to Action Wizard > Manage Actions, select the action, and check its source and security.

 

3. Use app.trustedFunction() properly (for advanced users/developers):

  • Developers writing the script can wrap file system calls inside app.trustedFunction() with proper trust policies. But this must be pre-approved and can’t override end-user security settings automatically.

 

Acrobat’s Security Philosophy:

Adobe’s Acrobat JavaScript environment prioritizes user safety. Any script that performs potentially invasive actions must be either explicitly trusted by the user or executed from a verified environment.

 

I hope that answers your question and provides you with the background on the prompt. 


~Tariq

Translate
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