What Can You Do With Acrobat Javascript - Adobe 12001196 - Acrobat - Mac Manual

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

Advertisement

HTML JavaScript is able to manipulate objects such as Window. Acrobat JavaScript
cannot access this particular object but it can manipulate PDF-specific objects such as
Doc and annot.

What Can You Do with Acrobat JavaScript?

Acrobat JavaScript enables you to do a wide variety of things within a PDF document. The
Adobe Solutions Network (ASN) has an Adobe Acrobat JavaScript Training course that
covers a wide variety of the possibilities available within Acrobat JavaScript. This course
material is in a PDF file available at:
http://partners.adobe.com/asn/developer/training/acrobat/javascript/main.html
The ASN course includes:
Performing calculations
You can create fields on a PDF document that collect numeric data. Like a spreadsheet,
you can specify calculations that can be performed on several field values to yield a
desired result. See the ASN JavaScript training module on "JavaScript Basics" for more
information.
Responding to user actions
When a user interacts with a PDF document, mouse clicks, text entry, entering or exiting
fields are all possible actions that can occur. You can tie JavaScript code, or scripts, to a
particular action or event. Acrobat detects when the action occurs and calls the
associated script. See the ASN JavaScript training module on "JavaScript Basics" and the
ASN JavaScript training module on "Location Matters" for more information.
Validating user data
You can check whether or not the data entered by the user on an eForm is valid. You can
check whether a given date is legitimate for the application, whether a particular value
makes sense given other information the user has provided on the form, and so on. See
"Performing Validations and Calculations" in the ASN JavaScript training module on
"JavaScript Basics" for more information.
Modifying the Acrobat application
Acrobat gives you the ability to alter its menus and tool bars. Use JavaScript to add
custom menu items, hide or display tool bars and menus. See the ASN JavaScript
training module on "Location Matters" for details.
Controlling the behavior of the document
You can control what happens when a document first opens by using document-level
scripts. Document-level scripts can cause changes that are visible to the user, such as
setting up viewing parameters for a PDF. They are also used to initialize functions and
variables used by page-level and field-level scripts. You can also associate scripts with
actions such as a page opening or closing. See the ASN JavaScript training module on
"Location Matters" for details.
Acrobat JavaScript Scripting Guide
Introduction to Acrobat JavaScript
What Can You Do with Acrobat JavaScript?
1
13

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acrobat 6.0

Table of Contents