FForgeKit

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 PDFConvert HTML documents and snippets to print-ready PDF with
  • Markdown to PDFRender Markdown files to styled PDF documents for docs and r
  • URL to PDFCapture any public webpage as PDF with JavaScript rendering.
  • DOCX to PDFConvert Word documents to PDF while preserving layout.
  • CSV to PDFTurn CSV data into formatted PDF tables for sharing.
  • JSON to PDFPretty-print JSON structures as readable PDF reports.
  • XML to PDFTransform XML documents into PDF with schema-aware formattin
  • PPTX to PDFConvert PowerPoint slides to PDF for distribution.
  • XLSX to PDFExport Excel spreadsheets to PDF with cell formatting.
  • Email to PDFArchive email HTML content as searchable PDF files.

How it works

  1. Send a URL or HTML body to POST /api/v1/pdf
  2. ForgeKit renders in headless Chrome with your format settings
  3. Receive a PDF binary or async job ID for large documents
  4. 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.