Skip to main content

SetRotation

Sets page rotation angle

Syntax

expression.SetRotation(nAngle);

expression - A variable that represents a ApiPage class.

Parameters

NameRequired/OptionalData typeDefaultDescription
nAngleRequirednumberNo description provided.

Returns

boolean

Example

Set rotate for first page in document.

// How can I set rotation using a page in a PDF document?

// Set rotation for a page in a PDF document.

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