Table of Contents

Enum PageOrientations

Namespace
LMKit.Document.Pdf
Assembly
LM-Kit.NET.dll

Specifies the rotation orientation of a PDF page.

public enum PageOrientations

Fields

Normal = 0

No rotation. The page is displayed in its original, upright orientation (0 degrees).

Rotated90CW = 1

The page is rotated 90 degrees clockwise from the normal orientation.

Rotated180 = 2

The page is rotated 180 degrees from the normal orientation (upside down).

Rotated90CCW = 3

The 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.

Share