PageFormat
Overview
PageFormat is a class in Aspose.PDF FOSS for TypeScript.
A page size in points (1/72").
This class declares 4 methods for PageFormat objects in TypeScript programs.
Available methods include: custom, landscape, mediaBox, portrait.
All public members are accessible to any TypeScript application after installing the Aspose.PDF FOSS for TypeScript package.
Properties: A4, Legal, Letter.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
A4 | `` | Read | Gets the a4. |
Letter | `` | Read | Gets the letter. |
Legal | `` | Read | Gets the legal. |
Methods
| Signature | Description |
|---|---|
custom(width: number, height: number) → PageFormat | A custom page size; both dimensions must be positive and finite. |
landscape() → PageFormat | This format oriented so width >= height (returns this if already so). |
portrait() → PageFormat | This format oriented so height >= width (returns this if already so). |
mediaBox() → number[] | The /MediaBox rectangle [0, 0, width, height] for this format. |