PageSize
Overview
PageSize is a class in Aspose.Pdf FOSS for Java.
Predefined page sizes and custom page dimensions for PDF documents.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
width | double | Read | Returns the width in user-space units (points). |
height | double | Read | Returns the height in user-space units (points). |
A1 | PageSize | Read | ISO A1: 594 x 841 mm (1684 x 2384 points). |
A2 | PageSize | Read | ISO A2: 420 x 594 mm (1190 x 1684 points). |
A3 | PageSize | Read | ISO A3: 297 x 420 mm (842 x 1190 points). |
A4 | PageSize | Read | ISO A4: 210 x 297 mm (595 x 842 points). |
LETTER | PageSize | Read | US Letter: 8.5 x 11 in (612 x 792 points). |
LEGAL | PageSize | Read | US Legal: 8.5 x 14 in (612 x 1008 points). |
Methods
| Signature | Description |
|---|---|
PageSize(width: double, height: double) | Creates a page size with the specified dimensions. |
getWidth() → double | Returns the width in user-space units (points). |
getHeight() → double | Returns the height in user-space units (points). |
toString() → String |