document.pdf.from_html
Convert HTML content to PDF documents with full CSS and JavaScript rendering. Customize page size, margins, headers, and footers, then receive a temporary download URL for the generated PDF file.
Instructions
Convert HTML content to a PDF document using headless Chrome — full CSS + JavaScript rendering, custom page size, margins, headers/footers, background colors. Returns a temporary download URL for the generated PDF (API2PDF)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | HTML content to convert to PDF (full document or fragment, e.g. "<h1>Report</h1><p>Content here</p>") | |
| fileName | No | Output filename (e.g. "report.pdf") | |
| options | No | PDF rendering options (page size, margins, header/footer) |