OptionaldisplayOptionalfooterHTML template for the print footer. Should be valid HTML markup with following classes used to inject printing values into them:
date formatted print datetitle document titleurl document locationpageNumber current page numbertotalPages total pages in the documentOptionalformatPaper format. If set, takes priority over width or height options.
OptionalheaderHTML template for the print header. Should be valid HTML markup with following classes used to inject printing values into them:
date formatted print datetitle document titleurl document locationpageNumber current page numbertotalPages total pages in the documentOptionalheightPaper height.
OptionallandscapePaper orientation.
OptionalmarginPaper margins, defaults to none.
Optionalbottom?: LayoutDimensionBottom margin.
Optionalleft?: LayoutDimensionLeft margin.
Optionalright?: LayoutDimensionRight margin.
Optionaltop?: LayoutDimensionTop margin.
OptionalpagePaper ranges to print, e.g., '1-5, 8, 11-13'.
OptionalpathThe file path to save the PDF to.
If path is a relative path, then it is resolved relative to current working directory.
If no path is provided, the PDF won't be saved to the disk.
OptionalpreferGive any CSS @page size declared in the page priority over what is declared in width and height or format options.
OptionalprintPrint background graphics.
OptionalscaleScale of the webpage rendering. Between 0.1 and 2.
OptionalwidthPaper width.
Display header and footer.