convert
Convert an HTML document or a URL to a PDF, PNG, JPEG or WEBP file. Returns a temporary download URL (valid ~2 days).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | Extra CSS to inject, as a URL or raw string. | |
| delay | No | Milliseconds to wait before capture (max 10000). | |
| format | No | Output format: pdf (default), png, jpeg or webp. | |
| source | Yes | A URL (http/https) or a raw HTML string to convert. | |
| sandbox | No | Generate a free, watermarked document that does not consume credits. Useful for testing. | |
| wait_for | No | A JS variable/function or CSS selector to wait for before capturing. | |
| landscape | No | Landscape orientation instead of portrait (PDF only). | |
| use_print | No | Use the print CSS media type instead of screen. |