PDF Conversion API
TL;DR: Convert HTML, URLs, Markdown, DOCX, and more to print-ready PDFs. Full JavaScript rendering via headless Chrome.
Convert URL to PDF
Why a PDF conversion API?
Generating PDFs from web content is harder than it looks. Client-side libraries fail on complex CSS, JavaScript-rendered SPAs, and custom fonts. Server-side wkhtmltopdf cannot execute modern JavaScript. ForgeKit uses headless Chrome to produce accurate PDFs from any public URL or HTML snippet.
Whether you need invoice PDFs, report exports, documentation archives, or automated compliance snapshots, the PDF API handles pagination, headers, footers, and A4/Letter formats through a simple REST interface.
Supported formats
- HTML to PDF— Convert HTML documents and snippets to print-ready PDF with …
- Markdown to PDF— Render Markdown files to styled PDF documents for docs and r…
- URL to PDF— Capture any public webpage as PDF with JavaScript rendering.…
- DOCX to PDF— Convert Word documents to PDF while preserving layout.…
- CSV to PDF— Turn CSV data into formatted PDF tables for sharing.…
- JSON to PDF— Pretty-print JSON structures as readable PDF reports.…
- XML to PDF— Transform XML documents into PDF with schema-aware formattin…
- PPTX to PDF— Convert PowerPoint slides to PDF for distribution.…
- XLSX to PDF— Export Excel spreadsheets to PDF with cell formatting.…
- Email to PDF— Archive email HTML content as searchable PDF files.…
How it works
- Send a URL or HTML body to POST /api/v1/pdf
- ForgeKit renders in headless Chrome with your format settings
- Receive a PDF binary or async job ID for large documents
- Optionally set webhooks for completion notification
Pricing
2.5 credits per PDF conversion. 250 free credits/month on Developer plan.
FAQ
Max page size?
50 MB output, unlimited input URL length.
Custom headers/footers?
Yes — pass headerTemplate and footerTemplate in the request.
Landscape mode?
Set landscape: true in the request body.