Border is optional and defaults to 0. A non-uniform border can be specified in the form {left: '2cm', top: '2cm', right: '2cm', bottom: '3cm'} Use of px is strongly recommended.
set the DPI for pdf generation. defaults to 150, which causes each page to be 2x as large (use "fit to paper" when printing) If you want exact, proper page dimensions, set this to 72.
settings for footers of the pdf
Supported formats are: 'A3', 'A4', 'A5', 'Legal', 'Letter', 'Tabloid'. .
settings for headers of the pdf
height and width are optional if format is specified. Use of px is strongly recommended. Supported dimension units are: 'mm', 'cm', 'in', 'px'. No unit means 'px'.
optional. ('portrait', 'landscape') and defaults to 'portrait'
height and width are optional if format is specified. Use of px is strongly recommended. Supported dimension units are: 'mm', 'cm', 'in', 'px'. No unit means 'px'.
for the old
WebKitbackend rendering only. For the newChromebackend, see theIPdfOptionsdocumentation. options specific to rendering pdfs. IMPORTANT NOTE: we strongly recommend usingpxas your units of measurement.