URL to PDF
Operationalv2.0.1 • Updated 1 day ago
API Overview
Capture any public webpage as a high-quality PDF document. Perfect for archiving web content, generating reports, or creating offline documentation. Supports full CSS/JavaScript rendering with configurable options.
language
Web Capture
Render any public URL with full fidelity.
settings
Flexible Options
Custom page size, orientation, and margins.
Endpoints
POST
/api/html-to-pdf/convert-urlBody Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | The URL of the webpage to convert to PDF. |
format | string | No | Page format: A4, A3, A5, Letter, Legal, Tabloid (default: A4). |
orientation | string | No | Page orientation: portrait, landscape (default: portrait). |
printBackground | boolean | No | Print background graphics (default: true). |
scale | number | No | Page scale factor 0.1-2.0 (default: 1.0). |
auth | object | No | HTTP Basic Auth credentials for protected pages. |
terminalAPI Playground
Live Simulation