PageSize

Overview

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

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

This class provides 2 methods for working with PageSize objects in .NET programs. Available methods include: PageSize. All 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 (2383.937 × 3370.394 pt).
A1PageSizeReadISO A1 — 594 × 841 mm (1683.780 × 2383.937 pt).
A2PageSizeReadISO A2 — 420 × 594 mm (1190.551 × 1683.780 pt).
A3PageSizeReadISO A3 — 297 × 420 mm (841.890 × 1190.551 pt).
A4PageSizeReadISO A4 — 210 × 297 mm (595.276 × 841.890 pt).
A5PageSizeReadISO A5 — 148 × 210 mm (419.528 × 595.276 pt).
A6PageSizeReadISO A6 — 105 × 148 mm (297.638 × 419.528 pt).
B5PageSizeReadISO B5 — 176 × 250 mm (498.898 × 708.661 pt).
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)Calls PageSize on this PageSize instance.
PageSize(x: float, y: float)

See Also