The best HTML to PDF API in 2026 — honestly compared
An opinionated comparison of six HTML-to-PDF APIs worth evaluating in 2026 — DocRaptor, PDFShift, PDFCrowd, API2PDF, Prince, 21pdf — scored on what matters.
/ Blog
In-depth posts on HTML-to-PDF APIs, Chromium rendering, CSS for print, SSRF hardening, async job models, and the rest of the document-infrastructure stack — grounded in the Go codebase that powers 21pdf.
An opinionated comparison of six HTML-to-PDF APIs worth evaluating in 2026 — DocRaptor, PDFShift, PDFCrowd, API2PDF, Prince, 21pdf — scored on what matters.
A working engineer's walk through the pipeline that turns HTML into a PDF inside headless Chromium — Blink, V8, print preview, CDP, Puppeteer.
Everything working engineers need to know about CSS for PDF output — @page rules, margins, page-breaks, headers, footers, page numbers, paged media.
Everything a working engineer needs to know about HTML-to-PDF APIs in 2026 — how they render, what to ask, and the pitfalls that actually bite in production.
A structured comparison of self-hosting Puppeteer/Playwright/Gotenberg vs using a managed HTML-to-PDF API — with the numbers that matter for the decision.
A production playbook for generating invoice PDFs via an HTML-to-PDF API — template structure, US sales tax, EU VAT invoicing, edge cases, and delivery.
Operating an HTML-to-PDF service at production scale — queue design, Chromium pool sizing, rate limits, SSRF, monitoring, and the failure modes that actually bite.
An opinionated comparison of six HTML-to-PDF APIs worth evaluating in 2026 — DocRaptor, PDFShift, PDFCrowd, API2PDF, Prince, 21pdf — scored on what matters.
A working engineer's walk through the pipeline that turns HTML into a PDF inside headless Chromium — Blink, V8, print preview, CDP, Puppeteer.
Everything working engineers need to know about CSS for PDF output — @page rules, margins, page-breaks, headers, footers, page numbers, paged media.
Fair comparison of DocRaptor alternatives — 21pdf, PDFShift, PDFCrowd, API2PDF, self-hosted Prince — with pricing, features, and the decision framework.
Everything a working engineer needs to know about HTML-to-PDF APIs in 2026 — how they render, what to ask, and the pitfalls that actually bite in production.
Convert HTML to PDF in Go with chromedp, rod, or a managed HTML-to-PDF API — full working code, comparison, and when to pick each.
A structured comparison of self-hosting Puppeteer/Playwright/Gotenberg vs using a managed HTML-to-PDF API — with the numbers that matter for the decision.
Four ways to turn HTML into a PDF from Node.js — Puppeteer, Playwright, html-pdf-node, and a managed API — with working code and when to pick each.
Convert HTML to PDF in Python with Playwright, WeasyPrint, pdfkit (wkhtmltopdf), or a managed API — full working code and when to pick each.
A production playbook for generating invoice PDFs via an HTML-to-PDF API — template structure, US sales tax, EU VAT invoicing, edge cases, and delivery.
Operating an HTML-to-PDF service at production scale — queue design, Chromium pool sizing, rate limits, SSRF, monitoring, and the failure modes that actually bite.
Fair comparison of PDFShift alternatives — 21pdf, PDFCrowd, DocRaptor, API2PDF, self-hosted — with pricing, feature gaps, and migration guidance.
Using the 21pdf REST API — auth, request shape, response lifecycle, production patterns.
Calling /v1/convert from Node, Python, Go, PHP, Ruby, Java, and raw curl.
How Chromium renders PDFs — Puppeteer, Playwright, DevTools Protocol, wkhtmltopdf migration.
Fair comparisons with DocRaptor, PDFShift, API2PDF, PDFCrowd, Prince, and friends.
@page, margins, page-breaks, headers, footers, page numbers — how to get pixel-right PDFs.
Invoice, statement, receipt, and report generation — the bread-and-butter of PDF APIs.
SSRF, async job queues, webhooks vs polling, rate limits — what engineers worry about in a PDF renderer.
Building an Indian SaaS stack — Razorpay subscriptions, GST invoicing, INR pricing.
Library vs API, Puppeteer vs Playwright, self-hosted vs managed — head-to-head decisions.