A Short Acrobat JavaScript FAQ
How can I disallow changes in scripts contained in my document?
A
How can I disallow changes in scripts contained in my document?
Go to
File > Document Properties
and select the
Security
tab. Set up either password or
certificate security for the document by clicking
Security Method
and choosing either
Password Security
or
Certificate Security.
In the
Permissions
area of the dialog box that
pops up, click
Changes Allowed
and select any of the options except
Any except
extracting pages.
You can verify that changes to scripts have been disabled by returning
to the
Security
tab. In the
Document Restrictions Summary
portion,
Changing the
Document
should be set to
Not Allowed.
How can I hide scripts contained in my document?
Go to
File > Document Properties
and select the
Security
tab. Set up either password or
certificate security for the document by clicking
Security Method
and choosing either
Password Security
or
Certificate Security.
In the
Permissions
area of the dialog box that
pops up, ensure that
Enable copying of text, images, and other content
is unchecked.
You can verify that changes to scripts have been disabled by returning to the
Security
tab.
In the
Document Restrictions Summary
portion,
Changing the Document
should be set
to
Not Allowed.
Acrobat JavaScript Scripting Guide
271