Page Size

User Guide / Paged Media

Page size can be specified in length units or by a page size keyword optionally combined with the portrait or landscape keyword.

CSS

@page { size: A4 }

This sets the page size to A4 paper size.

CSS

@page { size: A4 landscape }

This sets the page size to landscape A4 paper size.

CSS

@page { size: 30cm 40cm }

This sets the page width to 30cm and the height to 40cm.

CSS

@page { size: 30cm }

This sets both the width and height of the page to 30cm.

Page Size Keywords

Prince supports the following page size keywords.

(Note: keywords are not case sensitive; eg. "A4" and "a4" are equivalent).

Keyword Page Size
A0841mm × 1189mm
A1594mm × 841mm
A2420mm × 594mm
A3297mm × 420mm
A4210mm × 297mm
A5148mm × 210mm
A6105mm × 148mm
A774mm × 105mm
A852mm × 74mm
A937mm × 52mm
A1026mm × 37mm
B01000mm × 1414mm
B1707mm × 1000mm
B2500mm × 707mm
B3353mm × 500mm
B4250mm × 353mm
B5176mm × 250mm
B6125mm × 176mm
B788mm × 125mm
B862mm × 88mm
B944mm × 62mm
B1031mm × 44mm
C0917mm × 1297mm
C1648mm × 917mm
C2458mm × 648mm
C3324mm × 458mm
C4229mm × 324mm
C5162mm × 229mm
C6114mm × 162mm
C781mm × 114mm
C857mm × 81mm
C940mm × 57mm
C1028mm × 40mm
id-185.60mm × 53.98mm
id-2105.0mm × 74.0mm
id-3125.0mm × 88.0mm
US-Letter8.5in × 11.0in
US-Legal8.5in × 14.0in
US-Executive7.25in × 10.5in
US-Ledger17.0in × 11.0in
US-Tabloid11.0in × 17.0in
US-Government8.0in × 11.0in
US-Statement5.5in × 8.5in
US-Folio8.5in × 13.0in
ansi-a8.5in × 11.0in
ansi-b11.0in × 17.0in
ansi-c17.0in × 22.0in
ansi-d22.0in × 34.0in
ansi-e34.0in × 44.0in
arch-a9.0in × 12.0in
arch-b12.0in × 18.0in
arch-c18.0in × 24.0in
arch-d24.0in × 36.0in
arch-e130.0in × 42.0in
arch-e36.0in × 48.0in
imperial-folio15.0in × 22.0in
imperial-quarto11.0in × 15.0in
imperial-octavo7.5in × 11.0in
royal-folio12.5in × 20.0in
royal-quarto10.0in × 12.5in
royal-octavo6.25in × 10.0in
crown-folio10.0in × 15.0in
crown-quarto7.5in × 10.0in
crown-octavo5.0in × 7.5in
foolscap-folio8.5in × 13.5in
foolscap-quarto6.75in × 8.5in
foolscap-octavo4.25in × 6.75in
medium-quarto9.0in × 11.5in
demy-quarto8.75in × 11.25in
demy-octavo5.625in × 8.75in