Fix Acrobat JavaScript NotAllowedError When Forcing a Certification Signature
Question details
The user needs to resolve a NotAllowedError that occurs when trying to execute the Acrobat JavaScript method signatureSetSeedValue from a signature field.

- 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.
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.
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.
Navigate to the Acrobat application-level JavaScript folder on your system (typically located at C:\Program Files\Adobe\Acrobat DC\Acrobat\Javascripts on Windows).
Create a new file with a .js extension (e.g., trusted_signature.js) in this folder.
Write a script using app.trustedFunction to encapsulate your signatureSetSeedValue logic, granting it the necessary elevated privileges.
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.
Manually Configure the Signature Field Properties
Avoid JavaScript restrictions entirely by setting the certification requirements directly within the signature field's built-in properties.
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. Download and Install: Download WPS Office from the official website and complete the quick installation.
- 2. Open Your PDF: Launch WPS PDF and open the document you need to sign.
- 3. Sign Securely: Navigate to the 'Protect' tab and select 'Sign Document' to apply your digital signature seamlessly.

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.




