PDF Security & Access Issues

Fix Acrobat JavaScript NotAllowedError When Forcing a Certification Signature

Steven ParkerSteven Parker Nov 3, 2026 869 views

Question details

The user needs to resolve a NotAllowedError that occurs when trying to execute the Acrobat JavaScript method signatureSetSeedValue from a signature field.

How to Fix Acrobat JavaScript Error When Forcing a Certification Signature
Product
Adobe Acrobat
Device & OS
not provided
Scenario
Attempting to force a certification signature using a script triggered by a signature field's On Focus event.
Observed behavior
The signatureSetSeedValue method returns a NotAllowedError because application security settings prevent the script from accessing this privileged method from an untrusted event.
Before you start

Ensure you have administrative access to your computer to modify application-level JavaScript folders, and save a backup copy of your PDF document before altering its scripts or signature properties.

Solution 1Recommended

Implement a Trusted Function for Elevated Privileges

Bypass the restriction by wrapping the privileged method in a trusted function located in Acrobat's application-level JavaScript folder.

The signatureSetSeedValue method requires elevated privileges to execute. When called from a standard document-level script or an On Focus event, Acrobat blocks it for security reasons.

To run this method successfully, you must define it inside a trusted function using app.trustedFunction and save it in the local application's JavaScript directory.

1
Locate the JavaScripts folder

Navigate to the Acrobat application-level JavaScript folder on your system (typically located at C:\Program Files\Adobe\Acrobat DC\Acrobat\Javascripts on Windows).

2
Create a new JavaScript file

Create a new file with a .js extension (e.g., trusted_signature.js) in this folder.

3
Define the trusted function

Write a script using app.trustedFunction to encapsulate your signatureSetSeedValue logic, granting it the necessary elevated privileges.

4
Call the function from your PDF

Return to your PDF document and update the signature field's On Focus event to call your newly created trusted function instead of the restricted method directly.

Security Warning: Scripts placed in the application-level folder execute with higher privileges. Ensure your script logic is secure and review Adobe's JavaScript API privilege guidance.
Free Microsoft Office alternative

Easily Manage and Sign PDF Documents with WPS Office

If dealing with complex JavaScript permissions and application-level folders is slowing down your workflow, consider using WPS Office. It provides a straightforward, highly compatible interface for securing, signing, and managing your PDF files without the need for advanced scripting.

  1. 1. Download and Install: Download WPS Office from the official website and complete the quick installation.
  2. 2. Open Your PDF: Launch WPS PDF and open the document you need to sign.
  3. 3. Sign Securely: Navigate to the 'Protect' tab and select 'Sign Document' to apply your digital signature seamlessly.
Add digital signatures to PDFs quickly without writing complex scripts.Fully compatible with standard PDF, Microsoft Word, Excel, and PowerPoint formats.Lightweight software that installs fast and runs smoothly on Windows, Mac, and Linux.Intuitive user interface for hassle-free document certification and editing.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Acrobat throw a NotAllowedError for signatureSetSeedValue?

The signatureSetSeedValue method requires elevated privileges to prevent malicious scripts from altering document security silently. It cannot be run from untrusted document-level scripts or standard field events like On Focus.

Where should I place trusted JavaScript files for PDF readers?

Trusted JavaScript files must be saved in the application-level JavaScripts folder on the user's local machine. For Acrobat, this is typically located in the installation directory under Acrobat\Javascripts.

Can I set signature seed values without using JavaScript?

Yes, you can manually configure seed values by opening the signature field properties in form editing mode, navigating to the 'Signed' tab, and defining the security requirements directly.

Does WPS Office support adding digital signatures to PDFs?

Yes, WPS Office provides built-in tools under the 'Protect' tab to securely add, manage, and verify digital signatures in PDF documents without needing any JavaScript configuration.