Create a Trusted Certificate for Privileged JavaScript in Adobe Acrobat
Question details
The user needs to establish certificate trust for eligible privileged JavaScript in an Acrobat PDF.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- A PDF contains document-level JavaScript that requires elevated privileges.
- Observed behavior
- Certain high-privilege functions cannot run in the document-level script without the required trust or execution context.
Confirm that the PDF and its JavaScript come from a trusted source, and obtain a digital ID or create one in Acrobat. Menu names and certificate trust options may vary by Acrobat version.
Certify the PDF and configure trust for the signing certificate
Use a digital ID to certify the document, then have each recipient trust the signer's certificate for the required operations.
Certifying a PDF is different from encrypting it with a certificate. Encryption controls who can open a document; it does not by itself grant JavaScript privileges.
Certificate trust can enable eligible operations in certified documents, but it does not make every privileged JavaScript function callable from a document-level script. Some functions require a trusted function defined in a folder-level script or another permitted execution context.
In Acrobat, open Preferences > Signatures. Under Identities & Trusted Certificates, select More, then select Digital IDs and use Add ID to create or add a digital ID.
Open the PDF and choose Tools > Certificates > Certify. Select the appropriate certification option and digital ID, then complete the signing prompts and save the certified PDF.
Provide recipients with the public certificate or certified PDF. Recipients should verify the certificate's identity and fingerprint through a trusted channel before trusting it.
On each recipient's Acrobat installation, open Preferences > Signatures > Identities & Trusted Certificates > More. Import or select the signer's certificate under Trusted Certificates, choose Edit Trust, and enable trust for certified documents and any specific privileged operations the recipient intends to allow.
Have the recipient reopen the certified PDF in Acrobat and trigger the script. If a function remains blocked, check the Acrobat JavaScript API documentation for its required execution context and security restrictions.

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 from Microsoft Office. Acrobat certificate trust and privileged JavaScript settings must still be configured in Acrobat.

Frequently Asked Questions
Does encrypting a PDF with a certificate make its JavaScript trusted?
No. Certificate encryption restricts access to recipients; it does not grant JavaScript privileges. Certify the PDF and configure the signer's trust settings where appropriate.
Where can I create a digital ID in Acrobat?
Open Preferences > Signatures, select More under Identities & Trusted Certificates, and use Add ID under Digital IDs. The exact menu labels may vary by version.
Why is my script still blocked after I trust the certificate?
A certificate does not override every Acrobat JavaScript restriction. Check the API documentation for the function: it may require a trusted function in a folder-level script or another permitted execution context.
Do recipients need to trust my certificate individually?
Recipients must have appropriate trust established in their Acrobat environment, either through their own Trusted Certificates settings or an applicable organization-managed trust configuration. They should verify the certificate before granting trust.




