marginsType Integer (default 0) -
Specifies the type of margins to use. Uses 0 for default margin, 1
for no margin, and 2 for minimum margin.
pageSize String (default "A4")- Specify
page size of the generated PDF. Can be A3,
A4, A5, Legal,
Letter, Tabloid or
<width>x<height> in microns (e.g.
210000x297000 for A4)
printBackground Boolean (default true) -
Whether to print CSS backgrounds.
landscape Boolean (default false) -
true for landscape, false for portrait.
letterPaperUrl
An extra option is to pass in a letterPaperUrl. This will be used as a
background for all pages of the .pdf
{
"pageSize": "A4",
"landscape": false,
"marginsType": 0,
"letterPaperUrl": "https://kmt.kingsquare.nl/img/briefpapier2.png"
}