Document Object

This object provides the interface between a PDF document open in the viewer and the JavaScript interpreter. It provides methods and properties for accessing the PDF document.

You can access Document Objects from JavaScript in a variety of ways:

• The this Object (page 631) usually points to the Document Object of the underlying document.

• Some properties and methods, such as extractPages (page 242), app.activeDocs (page 49), and app.openDoc (page 97), return Document Objects.

• Document Objects can often be accessed through event Objects (page 314), which are created for each event by which a JavaScript is executed:

• For mouse, focus, blur, calculate, validate, and format events, event.target (page 334) returns the Field Object ...

Get Adobe Acrobat Official JavaScript Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.