
Convert Any HTML or URL to PDF with a Simple API Call
Convert Any HTML or URL to PDF with a Simple API Call Need to generate PDFs from your web app? Invoices, reports, receipts, or just saving a webpage as PDF? The HTML to PDF Converter API does it in one API call — no Puppeteer setup, no server management, no headless browser configuration. Quick Start Convert HTML to PDF curl -X POST https://pdf-api-mu.vercel.app/api/convert \ -H "Content-Type: application/json" \ -d '{ "html": "<h1>Invoice #1234</h1><p>Amount: $49.99</p><p>Date: 2026-03-20</p>", "format": "A4", "margin": {"top": "25mm", "right": "20mm", "bottom": "25mm", "left": "20mm"} }' \ --output invoice.pdf Convert a URL to PDF curl -X POST https://pdf-api-mu.vercel.app/api/convert \ -H "Content-Type: application/json" \ -d '{"url": "https://example.com"}' \ --output page.pdf That's it. You get a production-quality PDF back. Options Parameter Type Default Description html string — Raw HTML to convert url string — URL to convert format string "A4" A0-A6, Letter, Legal, Tabloid, Led
Continue reading on Dev.to Tutorial
Opens in a new tab


