veil_pdf
Render the current page to a PDF file and save it to disk. Configure landscape, background printing, scale, and page ranges.
Instructions
Render the current page to a PDF and save it to disk — Chrome prints PDF in HEADLESS mode only (VEIL_HEADLESS=1). Pass path for the output file, or omit to write a temp file; returns the saved path. Options: landscape, printBackground (default true), scale, pageRanges.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | output .pdf path (default: a temp file) | |
| scale | No | ||
| landscape | No | ||
| pageRanges | No | e.g. "1-3, 5" | |
| printBackground | No |