HTML to PDF
Operationalv2.0.1 • Updated 1 day ago
API Overview
Convert HTML content to professional PDF documents with custom styling, headers, footers, and watermarks. Supports CSS styling, JavaScript rendering, and responsive layouts.
picture_as_pdf
Professional Output
Print-ready PDFs with custom styling.
brush
Full Customization
Headers, footers, margins, and watermarks.
Endpoints
POST
/api/convertBody Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
html | string | Yes | HTML content to convert. |
url | string | No | URL to convert (alternative to html). |
pageSize | string | No | Page size: A4, Letter, Legal (default: A4). |
margin | object | No | Page margins (top, right, bottom, left). |
landscape | boolean | No | Landscape orientation (default: false). |
header | string | No | Custom header HTML. |
footer | string | No | Custom footer HTML. |
terminalAPI Playground
Live Simulation