Fix Acrobat Trusted Save As Function Security Errors on Windows 11
Question details
The user needs an Acrobat trusted JavaScript Save As function to work on a Windows 11 tablet.

- Product
- Adobe Acrobat
- Device & OS
- Windows 11 tablet
- Scenario
- A folder-level trusted JavaScript function saves a PDF on Windows 10 but must also run on a Windows 11 device.
- Observed behavior
- On Windows 11, the function returns a NotAllowedError saying that security settings block the property or method.
Confirm whether the tablet has Adobe Acrobat or Acrobat Reader installed, and locate the folder-level JavaScript file and the destination path used by the function. You may need permission from your administrator to inspect Acrobat security settings or write to the destination folder.
Verify the trusted function and test the Save As path
Use this approach to identify whether the error comes from script installation, the destination path, or Acrobat security restrictions.
In Acrobat, open Help > About to confirm the product and version. Reader has additional restrictions, and a trusted function may not be able to perform the same Save As operation there.
Place the folder-level JavaScript file in the JavaScripts folder for the installed Acrobat product or user profile. If the JavaScript console is available, run app.getPath("user", "javascript") to check the user-level folder.
Close all Acrobat windows, reopen Acrobat, and open the PDF that calls the trusted function. Folder-level scripts are loaded when Acrobat starts.
Open the JavaScript console with Ctrl+J if it is enabled, and test the same saveAs command with the exact path and filename used by the function. Check that the path uses Acrobat-supported path syntax and that you can write to the destination folder in File Explorer.
Open Edit > Preferences > Security (Enhanced) and review the applicable security and protected-mode settings. Check that the function is defined as a trusted function in the folder-level script and uses the required privileged context; consult your administrator before changing security settings.

Work with PDFs and Office files in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface and support for common Office formats, making it easy to move everyday document work. It does not fix Acrobat trusted JavaScript security errors.

Frequently Asked Questions
Where should I put the Acrobat trusted JavaScript file?
Use the JavaScripts folder for the installed Acrobat product or user profile. If the JavaScript console is available, run app.getPath("user", "javascript") to find the user-level folder, then restart Acrobat after adding the file.
Why does Save As work in the console but not from the PDF?
The console and a document script can run in different security contexts. Check that the document calls a correctly installed folder-level trusted function and that the privileged operation runs in the required privileged context.
Can this trusted Save As function run in Acrobat Reader?
Reader has additional restrictions, so a function that works in Acrobat may not be able to perform the same saveAs operation in Reader. Check the installed product under Help > About and verify that the operation is supported.
What should I check in the destination path?
Test the exact path and filename in Acrobat's JavaScript console, using Acrobat-supported path syntax. Also open the destination folder in File Explorer and confirm that your Windows account can write to it.
Should I turn off Acrobat security to make the script work?
First review Edit > Preferences > Security (Enhanced), the script installation, and the destination permissions. Consult your administrator before changing protected-mode or other security settings.




