{
"scale": 1,
"displayHeaderFooter": false,
"headerHtml": "<string>",
"footerHtml": "<string>",
"printBackground": false,
"landscape": false,
"pageRanges": "1-5",
"format": "letter",
"width": "<string>",
"height": "<string>",
"preferCSSPageSize": false,
"margin": {
"top": "<string>",
"bottom": "<string>",
"left": "<string>",
"right": "<string>"
},
"omitBackground": false,
"outline": false,
"tagged": false
}API Documentation
PDF options
All available options for the PDF API endpoints.
All options are optional
If set, this takes priority over the width and height options.
The sizes of each format are as follows:
letter8.5in x 11inlegal8.5in x 14intabloid11in x 17inledger17in x 11ina033.1in x 46.8ina123.4in x 33.1ina216.54in x 23.4ina311.7in x 16.54ina48.27in x 11.7ina55.83in x 8.27ina64.13in x 5.83in
Available options:
letter, legal, tabloid, ledger, a0, a1, a2, a3, a4, a5, a6 Example:
"letter"
Give any CSS @page size declared in the page priority over what is declared in the width or height or format option.
Example:
false
Was this page helpful?