Paper Sizes
To set the size of the paper, you can use the size property on the @page selector in your CSS.
The size property can be one of these presets, combined with portrait (default) or landscape:
| Value | Dimensions |
|---|---|
| A0 | 841 × 1189 mm |
| A1 | 594 × 841 mm |
| A2 | 420 × 594 mm |
| A3 | 297 × 420 mm |
| A4 | 210 × 297 mm |
| A5 | 148 × 210 mm |
| A6 | 105 × 148 mm |
| A7 | 74 × 105 mm |
| A10 | 26 × 37 mm |
| B4 | 250 × 353 mm |
| B5 | 176 × 250 mm |
| letter | 8.5 × 11 in |
| legal | 8.5 × 14 in |
| ledger | 11 × 17 in |
Custom Sizes
You can also set custom paper sizes using numeric width and height properties: