HTML to PDF
TL;DR: Convert HTML to PDF with ForgeKit's API. Full CSS and JavaScript rendering, async jobs, and webhook callbacks.
Try HTML to PDF
Overview
Convert HTML documents and snippets to print-ready PDF with full CSS support.
ForgeKit renders HTML content through headless Chrome, producing print-ready PDFs with accurate fonts, layouts, and JavaScript-generated content.
API example
curl -X POST https://useforgekit.dev/api/v1/pdf \
-H "Authorization: Bearer fk_live_..." \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com", "format": "A4"}'Format benchmarks
| Metric | Value |
|---|---|
| Avg conversion time | 2.8s |
| Max file size | 50 MB |
| Credits per conversion | 2 |
| Supported input | HTML |
Use cases
- Automated report generation from HTML sources
- Invoice and document archival pipelines
- Scheduled PDF exports in CI/CD workflows
- Agent-driven document creation via MCP tools