Generates a PDF of the current page for a browser session and returns it as a binary PDF file.
API key passed in the header
Optional browser session ID. If omitted, url in the request body is required.
The URL of the page to print to PDF.
Paper orientation. Defaults to false.
Display header and footer. Defaults to false.
Print background graphics. Defaults to false.
Scale of the webpage rendering. Defaults to 1.
0.1 <= x <= 2Paper width in inches. Defaults to 8.5.
Paper height in inches. Defaults to 11.
Top margin in inches. Defaults to ~0.4.
x >= 0Bottom margin in inches. Defaults to ~0.4.
x >= 0Left margin in inches. Defaults to ~0.4.
x >= 0Right margin in inches. Defaults to ~0.4.
x >= 0Page ranges to print, e.g. '1-5, 8, 11-13'. Defaults to all pages.
^\d+(-\d+)?(,\s*\d+(-\d+)?)*$HTML template for the print header.
HTML template for the print footer.
Prefer page size as defined by CSS. Defaults to false.
PDF generated successfully
The response is of type file.