GetPage
Gets page by index from document.
Syntax
expression.GetPage(nPos);
expression - A variable that represents a ApiDocument class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| nPos | Required | number | page position |
Returns
Example
Get first page and set rotate.
// How to get the page for a document?
// Get the page and display the result in a PDF document.
let doc = Api.GetDocument();
let page = doc.GetPage(0);
page.SetRotation(90);