Save page as PDF
save_pdfExport the current page to a PDF file using Chrome's print-to-PDF. Renders the entire document with its print stylesheet, useful for archiving a page as a single file.
Instructions
Export the current page to a PDF using Chrome's print-to-PDF.
Renders the entire document rather than just the viewport, and applies the page's print stylesheet — so the result can differ from the screen layout.
A good way to archive a rendered page as one file. For a pixel-accurate copy of what is on screen, use take_screenshot with full_page instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Local path to write the .pdf file to. | |
| landscape | No | Use landscape orientation instead of portrait. | |
| print_background | No | Include background colours and images. Default true, which resembles the page as seen on screen; false gives the leaner print view. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |