File name of pdf Without filename, it will generate base64 response With filename it will generate pdf binary
HTML as string
PDF Custom Options
Display header and footer. Defaults to false
.
HTML template for the print footer. Should use the same format as the headerTemplate
.
Paper format. If set, takes priority over width
or height
options. Defaults to 'Letter'.
HTML template for the print header. Should be valid HTML markup with following classes used to inject printing values into them:
'date'
formatted print date'title'
document title'url'
document location'pageNumber'
current page number'totalPages'
total pages in the documentPaper height, accepts values labeled with units.
Paper orientation. Defaults to false
.
Paper margins, defaults to none.
Bottom margin, accepts values labeled with units. Defaults to 0
.
Left margin, accepts values labeled with units. Defaults to 0
.
Right margin, accepts values labeled with units. Defaults to 0
.
Top margin, accepts values labeled with units. Defaults to 0
.
Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which means print all pages.
Give any CSS @page
size declared in the page priority over what is declared in width
and height
or format
options. Defaults to false
, which will scale the content to fit the paper size.
Print background graphics. Defaults to false
.
Scale of the webpage rendering. Defaults to 1
. Scale amount must be between 0.1 and 2.
Paper width, accepts values labeled with units.
Generate pdf from URL
HTML on base64 format