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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access