PageSize

Overview

PageSize is a class in Aspose.PDF FOSS for .NET.

Standard page size constants (dimensions in points, portrait orientation).

This class declares 2 methods for PageSize objects in .NET programs. Available methods include: PageSize. Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: A0, A1, A2, A3, A4, A5, and 11 more.

Properties

NameTypeAccessDescription
WidthfloatRead/WriteWidth in points.
HeightfloatRead/WriteHeight in points.
IsLandscapeboolRead/WriteTrue when the page is wider than tall.
A0PageSizeReadISO A0 — 841 × 1189 mm, as the whole-point 2384 × 3370.
A1PageSizeReadISO A1 — 594 × 841 mm, as the whole-point 1684 × 2384.
A2PageSizeReadISO A2 — 420 × 594 mm, as the whole-point 1190 × 1684.
A3PageSizeReadISO A3 — 297 × 420 mm, as the whole-point 842 × 1190.
A4PageSizeReadISO A4 — 210 × 297 mm, as the whole-point 595 × 842.
A5PageSizeReadISO A5 — 148 × 210 mm, as the whole-point 421 × 595.
A6PageSizeReadISO A6 — 105 × 148 mm, as the whole-point 297 × 421.
B5PageSizeReadISO B5 — 176 × 250 mm, as the whole-point 501 × 709.
LetterPageSizeReadUS Letter — 8.5 × 11 in (612 × 792 pt).
LegalPageSizeReadUS Legal — 8.5 × 14 in (612 × 1008 pt).
P11x17PageSizeReadANSI B / Tabloid (Ledger landscape) — 11 × 17 in (792 × 1224 pt).
PageLedgerPageSizeReadANSI B / Ledger landscape — 17 × 11 in (1224 × 792 pt).
PageLetterPageSizeReadAlias for Letter (legacy Generator naming).
PageLegalPageSizeReadAlias for Legal (legacy Generator naming).

Methods

SignatureDescription
PageSize(width: double, height: double)Creates a page size of the given width and height in points (1/72 inch).
PageSize(x: float, y: float)Creates a page size of the given width (x) and height (y) in points (1/72 inch).

See Also

 English