Skip to main content

GetPage

Gets page by index from document.

Syntax

expression.GetPage(index);

expression - A variable that represents a ApiDocument class.

Parameters

NameRequired/OptionalData typeDefaultDescription
indexRequirednumberpage index.

Returns

ApiPage

Example

Access a single page from a PDF.

// How do I work with a specific page in a PDF?

// Retrieve a page and rotate it in a PDF.

let doc = Api.GetDocument();
let page = doc.GetPage(0);
page.SetRotation(90);