screenshot_pdf
Export a webpage as a PDF document (A4 format with background graphics).
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
url | string | Yes | - | The URL to export as PDF |
Advanced Capture Controls
Also supports cookieConsent, waitFor, waitUntil, timeoutMs, preScreenshotJs, deviceScaleFactor, and clickBefore before PDF export.
Example
Export https://myapp.com/invoice/123 as a PDFNotes
- Generates an A4-format PDF with background graphics enabled
- Returns a public URL to the PDF file
- Great for invoices, reports, documentation, and printable content