Class PdfPageInfo
Contains information about a single PDF page.
public sealed class PdfPageInfo
- Inheritance
-
PdfPageInfo
- Inherited Members
Examples
Example: Inspect page dimensions and orientation.
using LMKit.Document.Pdf;
IReadOnlyList<PdfPageInfo> pages = PdfInfo.GetPageInfos("document.pdf");
for (int i = 0; i < pages.Count; i++)
{
PdfPageInfo page = pages[i];
Console.WriteLine($"Page {i + 1}: {page.Width:F0} x {page.Height:F0} pts, " +
$"orientation={page.Orientation}, textOnly={page.IsTextOnly}");
}
Properties
- Height
Gets the page height in points (1 point = 1/72 inch).
- IsTextOnly
Gets a value indicating whether the page contains only text objects (no images, paths, or shadings).
- Orientation
Gets the page orientation.
- Width
Gets the page width in points (1 point = 1/72 inch).