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
| Name | Type | Access | Description |
|---|---|---|---|
Width | float | Read/Write | Width in points. |
Height | float | Read/Write | Height in points. |
IsLandscape | bool | Read/Write | True when the page is wider than tall. |
A0 | PageSize | Read | ISO A0 — 841 × 1189 mm, as the whole-point 2384 × 3370. |
A1 | PageSize | Read | ISO A1 — 594 × 841 mm, as the whole-point 1684 × 2384. |
A2 | PageSize | Read | ISO A2 — 420 × 594 mm, as the whole-point 1190 × 1684. |
A3 | PageSize | Read | ISO A3 — 297 × 420 mm, as the whole-point 842 × 1190. |
A4 | PageSize | Read | ISO A4 — 210 × 297 mm, as the whole-point 595 × 842. |
A5 | PageSize | Read | ISO A5 — 148 × 210 mm, as the whole-point 421 × 595. |
A6 | PageSize | Read | ISO A6 — 105 × 148 mm, as the whole-point 297 × 421. |
B5 | PageSize | Read | ISO B5 — 176 × 250 mm, as the whole-point 501 × 709. |
Letter | PageSize | Read | US Letter — 8.5 × 11 in (612 × 792 pt). |
Legal | PageSize | Read | US Legal — 8.5 × 14 in (612 × 1008 pt). |
P11x17 | PageSize | Read | ANSI B / Tabloid (Ledger landscape) — 11 × 17 in (792 × 1224 pt). |
PageLedger | PageSize | Read | ANSI B / Ledger landscape — 17 × 11 in (1224 × 792 pt). |
PageLetter | PageSize | Read | Alias for Letter (legacy Generator naming). |
PageLegal | PageSize | Read | Alias for Legal (legacy Generator naming). |
Methods
| Signature | Description |
|---|---|
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). |