THotPDF.GetLoadedPageRotation Method

Returns the rotation angle (in degrees) of the specified page in the loaded PDF document, used to determine the page orientation before rendering or export

Declaration

function GetLoadedPageRotation(PageIndex: Integer): Integer;

Unit

HPDFDoc

Parameters

NamePurpose
PageIndexZero-based index of the target page

Return value

Returns the page rotation angle, valid values are 0, 90, 180, 270 (clockwise degrees); returns 0 if the page is not rotated or the index is invalid

Usage notes

Related APIs