2
JavaScript APIs
With Adobe Reader, JavaScript can be used for a number of tasks:
To develop and process Acrobat forms and XML forms
●
To customize the behavior and appearance of a PDF document
●
To facilitate online team review
●
To implement security policies
●
To interact with web services
●
To customize the behavior and appearance of Adobe Reader itself
●
Note:
The JavaScript debugger available in Acrobat is not normally available in Adobe Reader, though
debug messages can be triggered to appear in the console. The complete debugger functionality
can be enabled in Adobe Reader on Windows and Mac OS platforms. For details, see Developing
Acrobat Applications using JavaScript.
As you learned in
be applied to a PDF document using LiveCycle Reader Extensions. For detailed information on which
JavaScript APIs are available in rights-enabled PDF documents, see Developing Acrobat Applications using
JavaScript.
Objects, properties and methods
On all supported platforms, JavaScript can be used for processing within a single document, processing
for a given page within a document, and processing for a given form field.
The following table
of the JavaScript objects, properties, and methods that can be used with Adobe Reader.
Note:
Some of the objects listed below, such as those related to the console, debugger, media players, and
text-to-speech, are not available for all platforms. Also, many properties and methods are only
available within certain contexts and circumstances. For details, see the JavaScript for Acrobat API
Reference and Developing Acrobat Applications using JavaScript.
Object
Alerter
Alternate-
Presentation
Annotation
"Technologies available within the Acrobat SDK" on page
JavaScript objects, properties, and methods available in Adobe Reader
JavaScript objects, properties, and methods available in Adobe Reader
Properties
active
type
alignment
AP
arrowBegin
arrowEnd
attachIcon
8, additional usage rights may
contains a list
Methods
dispatch
start
stop
destroy
getProps
getStateInModel
setProps
transitionToState
10