Navigation

Operations for moving through page history and seeking to a page in a document.

Topics

Determining Valid History Operations

canGoBack

Returns a Boolean value indicating whether the user can navigate to the previous page in the page history.

canGoForward

Returns a Boolean value indicating whether the user can navigate to the next page in the page history.

canGoToFirstPage

Returns a Boolean value indicating whether the user can navigate to the first page of the document.

canGoToLastPage

Returns a Boolean value indicating whether the user can navigate to the last page of the document.

canGoToNextPage

Returns a Boolean value indicating whether the user can navigate to the next page of the document.

canGoToPreviousPage

Returns a Boolean value indicating whether the user can navigate to the previous page of the document.

Navigating History for a Document

- goBack:

Navigates back one step in the page history.

- goForward:

Navigates forward one step in the page history.

- goToFirstPage:

Navigates to the first page of the document.

- goToLastPage:

Navigates to the last page of the document.

- goToNextPage:

Navigates to the next page of the document.

- goToPreviousPage:

Navigates to the previous page of the document.

Using Seek in a Document

- goToPage:

Scrolls to the specified page.

- goToDestination:

Navigates to the specified destination.

- goToSelection:

Scrolls to the first character of the specified selection.

- goToRect:onPage:

Navigates to the specified rectangle on the specified page.

See Also

Navigating Within a Document

currentPage

Returns the current page.

currentDestination

Returns a PDFDestination object representing the current page and the current point in the view specified in page space.

visiblePages

Returns an array of PDFPage objects that represent the currently visible pages.