ASN JavaScript training module on "Setting up a Comment Repository, " for more
information.
Acrobat JavaScript Object Overview
Acrobat JavaScript defines several objects that allow your code to interact with the Acrobat
application, a PDF document, or fields and buttons on a PDF document. This section
introduces you to some of the more commonly used objects.
The App object
The App object is a static object that represents the Acrobat application itself. It defines a
number of Acrobat specific functions plus a variety of utility routines and convenience
functions. By interacting with the App object, you can get to all of the currently open PDF
documents and customize Acrobat by adding menus and menu items. You can also query
App to determine which type of Adobe product (for example, Reader, Approval, or full
Acrobat) and which version the end user is using.
The Doc Object
Since the primary focus of an Acrobat application is the PDF document, you can use the
Doc Object
between a PDF document open in the viewer and the JavaScript interpreter. By interacting
with the
within the document, and access other objects within a document. Many of the objects
represent items found within a PDF document, such as bookmarks, fields, templates,
annotations, and sounds.
N
O T E
Acrobat JavaScript Scripting Guide
to manipulate an actual PDF document. The
Doc
Object, you can get general information about the document, move around
Those of you who are familiar with the HTML JavaScript object hierarchy will
:
remember that it is a containment hierarchy, not an inheritance hierarchy. Acrobat
JavaScript is no different. No object inherits properties or methods of an object
higher up the chain. Likewise, there is no automatic message passing from object to
object in any direction.
Introduction to Acrobat JavaScript
Acrobat JavaScript Object Overview
Doc Object
provides the interfaces
1
15