Adobe 12001196 - Acrobat - Mac Manual page 22

Javascript
Hide thumbs Also See for 12001196 - Acrobat - Mac:
Table of Contents

Advertisement

Acrobat JavaScript Editor and Debugger Console
2
Using a JavaScript Editor
5. Click Add to open the JavaScript editor.
6. In the editor window, write the JavaScript script that you want to run when the user
opens the page.
7. When you are done, click Close to close the editor.
If there are errors in your code, the JavaScript editor will highlight the code line in
question and display an error message, as shown in
F
IGURE
In
Key Notes
You can open the JavaScript editor to associate a JavaScript action with an object at
various locations (or "levels") in a PDF document. For example, you can associate a script
at the location of a particular field in a form or at the document level, in which case the
script is available from all other scriptable locations within the document. Access to the
editor depends on where you want the script to take effect.
For details on accessing and using the JavaScript editor at different locations within a PDF
document and at the application level, see the ASN JavaScript training module on
"Location Matters. "
22
2.2
Error detected by the JavaScript editor
Figure
2.2, the quotation mark to the right of the string is missing.
Figure
2.2.
Acrobat JavaScript Scripting Guide

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acrobat 6.0

Table of Contents