Page Setup & Margins
Control PDF paper formats, orientation layouts, margins, zoom levels, viewports, and custom ranges.
Standard paper format. ISO A-series: A0–A9. ISO B-series: B0–B9. Named: C5E, Comm10E, DLE, Executive, Folio, Ledger, Legal, Letter, Tabloid. Use "Custom" with page_width + page_height for any arbitrary size.
A0
A1
A2
A3
A4
A5
A6
A7
A8
A9
B0
B1
B2
B3
B4
B5
B6
B7
B8
B9
C5E
Comm10E
DLE
Executive
Folio
Ledger
Legal
Letter
Tabloid
Custom
Page width in mm, cm, in, px or pt.
Page height in mm, cm, in, px or pt.
Sets the orientation of the created pdf document: vertical (portrait) or horizontal (landscape).
portrait
landscape
vertical
horizontal
Set to true in order to activate CSS @media print declarations.
Viewport size to render your html in (e.g. 1440x900).
Adjust the HTML zoom factor.
Pages to print. Can be single number (3), range (1-5), list (4,5,6) or mixed (1-3,6).
Margin at the top of the page in mm, cm, in, px or pt.
Margin at the bottom of the page in mm, cm, in, px or pt.
Margin at the left of the page in mm, cm, in, px or pt.
Margin at the right of the page in mm, cm, in, px or pt.