OptionalfooterThe HTML to render at the bottom of every page
OptionalheaderThe HTML to render at the top of every page
OptionalpageOptionalmargins?: { bottom?: string; left?: string; right?: string; top?: string }Optionalbottom?: stringHow much space between the right of each page and the content.
Supported dimension units are: 'mm', 'cm', 'in', 'px'
Optionalleft?: stringHow much space between the left of each page and the content. Supported
dimension units are: 'mm', 'cm', 'in', 'px'
Optionalright?: stringHow much space between the right of each page and the content.
Supported dimension units are: 'mm', 'cm', 'in', 'px'
Optionaltop?: stringHow much space between the top of each page and the content. Supported
dimension units are: 'mm', 'cm', 'in', 'px'
Optionalorientation?: "Portrait" | "Landscape"'Portrait' or 'Landscape'. Default is 'Portrait'
Optionalsize?: 'Letter', 'Legal', 'Tabloid', 'Ledger', 'A0', 'A1', 'A2',
'A3', 'A4', 'A5' or 'A6'. Default is 'A4'
The HTML to render as a pdf