Table of Contents

Method GetPageIndex

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

GetPageIndex()

Gets the index of the page displayed by this view.

public int GetPageIndex()

Returns

int

The index of the page displayed by this view.

Remarks

If this view is used by a PdfGoToAction, the target page belongs to the current document. You can use the returned index to retrieve the corresponding page from the document's Pages collection.

If this view is used by a PdfRemoteGoToAction, the target page belongs to the document specified by FilePath.

In the underlying PDF structure, a document view can be represented in different ways. In some cases, determining the target page index requires enumerating all pages in the document, which can be slow for large documents.

Exceptions

UnexpectedStructureException

The underlying PDF structure contains a value with an unexpected type, or the value cannot be interpreted as a page index.