Click or drag to resize

PdfDocumentRotatePage Method

Rotates one page of the PdfDocument by a specified number of degrees.

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 5.1.1.20965 (5.1.1.2)
Syntax
public void RotatePage(
	int PageIndex,
	int Degrees
)

Parameters

PageIndex
Type: SystemInt32
Index of the page to rotate. PageIndex is a 'Zero based' page number, the first page being 0.
Degrees
Type: SystemInt32
The number of degrees to rotate the pages. 0, 90, 180 or 270 are accepted values.
See Also