The document object represents the entire document and provides the following properties.
pages (sequence of page objects)
Use the sequence indexer [] (zero-based) to select an individual page from the sequence. All properties of the page object are described in the article page object.
Example:
document.pages[0] // returns the first page of the document document.pages[document.pages.count - 1] // returns the last page of the document
metadata (metadata object)
The metadata property returns a metadata object as described in the article metadata object.
viewer (viewer object)
The viewer property returns a viewer object as described in the article viewer object.