HTML to PDF
Convert HTML to PDF in milliseconds. Two simple modes: Sync (/v1/render): Send HTML and get the PDF instantly. Best for simple pages like invoices, receipts, or reports under 200KB. Async (/v1/jobs): Submit larger or complex HTML and receive a job ID. Poll the job status until the PDF is ready. Supports documents up to 1MB and uses a background queue. Render options: Page format: A4, Letter,…
HTML to PDF endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST |
Create PDF Job (Async) /v1/jobs |
Submit large or complex HTML documents up to 1MB and receive a job_id immediately. The PDF is rendered asynchronously in a background queue and stored securely. Poll GET… |
| POST |
Convert HTML to PDF (Sync) /v1/render |
Submit raw HTML in the request body and receive a PDF file instantly in the response. The entire conversion happens synchronously, no polling required. Ideal for invoices,… |
| GET |
Get Job Status /v1/jobs/{job_id} |
Poll the status of an async PDF job. Status is one of: pending, processing, completed, failed. When completed, a download_url is included in the response. |