2
Acrobat JavaScript Tools
Using a JavaScript Editor
Using a JavaScript Editor
There are several ways to invoke the Arobat JavaScript Editor. To begin with, it is possible to
select
JavaScripts
from the
Advanced
menu and choose one of the following options:
●
●
●
Edit all JavaScripts ...
Document JavaScripts ...
Set Document Actions ...
A more basic approach, however, is to think of a JavaScript as an action associated with a
part of the document, such as a page, bookmark, or form field. It would then make sense to
select the object of interest and edit its particular JavaScript.
For example, the following are the steps to write a JavaScript for a bookmark:
1.
Right-click a bookmark. This triggers a context menu.
2.
Select
Properties
and choose the
Actions
tab, as shown below in
Figure 2.6.
38
Acrobat JavaScript Scripting Guide