HTML to PDF API
Convert URL or HTML payloads to PDF with one POST request. Ideal for invoices, reports, webpage snapshots, and automation workflows.
Endpoint
POST /api/pdf
URL to PDF
curl -X POST "https://snaphtml.one/api/pdf" \
-H "content-type: application/json" \
-d '{"url":"https://example.com"}' \
--output out.pdfHTML String to PDF
curl -X POST "https://snaphtml.one/api/pdf" \
-H "content-type: application/json" \
-d '{"html":"<!doctype html><html><body><h1>Hello</h1></body></html>"}' \
--output out.pdfRequest Fields
url: Target webpage URL (http/https)html: Raw HTML string (chooseurlorhtml)format: A4 / A3 / Letter / Legalheader/footer: Header and footer text with alignmentlogo: Logo dataUrl, position, and size
High-volume and enterprise use cases
If you need batch processing, async jobs, callback delivery, or more advanced rendering controls, leave your use case here.
Need Bulk HTML to PDF at Scale?
Talk with us for bulk html to pdf, html string to pdf api, url to pdf batch jobs, and enterprise rendering workflows.
