Optional
footer?: { The HTML to render at the bottom of every page
Optional
header?: { The HTML to render at the top of every page
Optional
page?: { Optional
margins?: { Optional
bottom?: stringHow much space between the right of each page and the content.
Supported dimension units are: 'mm'
, 'cm'
, 'in'
, 'px'
Optional
left?: stringHow much space between the left of each page and the content. Supported
dimension units are: 'mm'
, 'cm'
, 'in'
, 'px'
Optional
right?: stringHow much space between the right of each page and the content.
Supported dimension units are: 'mm'
, 'cm'
, 'in'
, 'px'
Optional
top?: stringHow much space between the top of each page and the content. Supported
dimension units are: 'mm'
, 'cm'
, 'in'
, 'px'
Optional
orientation?: "Portrait" | "Landscape"'Portrait'
or 'Landscape
'. Default is 'Portrait'
Optional
size?: 'Letter'
, 'Legal'
, 'Tabloid'
, 'Ledger'
, 'A0'
, 'A1'
, 'A2'
,
'A3'
, 'A4'
, 'A5'
or 'A6'
. Default is 'A4'
The HTML to render as a pdf