2
Acrobat JavaScript Tools
Using a JavaScript Editor
7.
When the code is complete, click
Close
to close the editor.
If there are errors in your code, the JavaScript editor highlights the code line in question
and display an error message, as shown below in
Figure 2.7.
F
IGURE
2.7
Error detected by the JavaScript Editor
In
Figure 2.7,
the quotation mark to the right of the string is missing.
N
OTE
:
JavaScript actions have a scope associated with various levels of objects in a PDF
document, such as a form field, a page, or the entire document. For example, a script
at the document level would be available from all other scriptable locations within
the document.
40
Acrobat JavaScript Scripting Guide