Convert URL to PDF
url_to_pdfConvert web pages to PDF documents with customizable page size, orientation, margins, and headers/footers. Generate reports, archive web content, or create printable documentation from any URL.
Instructions
Render a web page to a PDF document and return the hosted file URL. Supports page size (A4/Letter/etc.), orientation, custom margins, headers/footers. Use for generating reports, archiving pages, or producing printable documentation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to convert to PDF | |
| format | No | Page size (default A4) | |
| landscape | No | Landscape orientation (default false) | |
| printBackground | No | Include CSS backgrounds (default true for styled pages) | |
| scale | No | Zoom factor (0.1–2, default 1) | |
| darkMode | No | Render with dark mode |