Enum PageOrientations
Specifies the rotation orientation of a PDF page.
public enum PageOrientations
Fields
Normal = 0No rotation. The page is displayed in its original, upright orientation (0 degrees).
Rotated90CW = 1The page is rotated 90 degrees clockwise from the normal orientation.
Rotated180 = 2The page is rotated 180 degrees from the normal orientation (upside down).
Rotated90CCW = 3The page is rotated 90 degrees counter-clockwise from the normal orientation (equivalent to 270 degrees clockwise).
Examples
Example: Check page orientation for each page.
using LMKit.Document.Pdf;
IReadOnlyList<PdfPageInfo> pages = PdfInfo.GetPageInfos("scan.pdf");
foreach (PdfPageInfo page in pages)
{
if (page.Orientation != PageOrientations.Normal)
{
Console.WriteLine($"Page is rotated: {page.Orientation}");
}
}
Remarks
Values correspond to the standard PDF page rotation entries (0, 90, 180, 270 degrees). Rotation is measured clockwise from the normal (upright) orientation.