HTML to PDF API: 10 Services by Engine and Cost per 1,000

HTML to PDF API picks ranked for print fidelity and price: from about $0.49 per 1,000 documents on Api2Pdf to $120 on the Prince-based DocRaptor Basic plan.

Api2Pdf, Gotenberg, DocSpring and APITemplate.io web pages beside the title HTML to PDF API

An HTML to PDF API takes your HTML, CSS or a live URL and returns a finished PDF, so invoices, statements and reports print the way the page was designed. DocRaptor leads on print fidelity with the Prince engine, PDFShift and Api2Pdf lead on Chromium price, and Gotenberg is the pick when documents must stay on your own servers.

The spread in cost is wide. A one-page document runs about $0.49 per 1,000 on Api2Pdf’s metered billing and $120.00 per 1,000 on DocRaptor’s $15 Basic plan, and the engine explains much of that gap. The ten services below are ranked for how faithfully they print paged layouts and what each document costs.

What an HTML to PDF API Renders, and Which Engine Does It

Every service here runs a rendering engine on its own servers: Chromium in most cases, Prince at DocRaptor, and an optional wkhtmltopdf endpoint at Api2Pdf. Nutrient, CraftMyPDF and PDF.co do not disclose theirs. The engine decides how page breaks, repeating headers and page numbers come out, so settle it before comparing price.

The rules for printed pages sit in the CSS Paged Media Module Level 3, a W3C Working Draft last published on 14 September 2023. It defines the @page rule for page size and margins, plus page-margin boxes such as @top-left and @bottom-center that carry running headers and page numbers.

Chromium services usually take headers and footers as separate HTML. Gotenberg prints an uploaded header.html and footer.html on every page and fills elements with the classes pageNumber and totalPages. DocRaptor’s Prince engine reads paged-media CSS inside the document itself, which is how it handles footnotes, crop marks and mixed page sizes in one file.

HTML to PDF API Engines, Free Tiers and Entry Prices

# API Best for Starting price Free plan or trial Rendering engine
1 DocRaptor Print-grade statements and books Basic $15/mo for 125 documents 5 documents a month plus watermarked tests Prince
2 PDFShift Converting existing pages Starter $9/mo for 500 credits 50 credits a month Chromium
3 Api2Pdf Lowest cost on light pages $1/mo plus bandwidth and compute One month of free credit Headless Chrome or wkhtmltopdf
4 Gotenberg Keeping documents in-house Free (MIT), on your servers Whole product Chromium; LibreOffice for Office files
5 APITemplate.io Reports with charts and long tables PDF Basic $24/mo, or $19/mo billed annually 50 a month, no card Headless Chromium 153
6 html2pdf.app Plain per-1,000 pricing Startup $9/mo for 1,000 credits 100 credits a month, 1 MB cap Chromium
7 Nutrient DWS Processor API Generation inside larger document workflows Starter $75/mo with $90 of usage $5 of usage a month Not disclosed
8 PDF.co Generation plus parsing on one bill Basic $9.99/mo for 16,500 credits 10,000 trial credits, no card Not disclosed
9 DocSpring Regulated paperwork and signatures Starter $49/mo for 10,000 credits 200 credits a month Chrome
10 CraftMyPDF No-code template documents Lite $29/mo for 1,200 PDFs 50 a month, no card Not disclosed

Ten HTML to PDF APIs Ranked for Print Fidelity and Price

1. DocRaptor: Prince Engine for Print-Grade Pagination

DocRaptor signup page with a plan table from Free to Enterprise beside the account form
Image: DocRaptor

Price: Basic $15 a month for 125 documents, monthly billing only | Engine: Prince | Free tier: 5 documents a month | Per 1,000: $120.00 on Basic, $29.80 on Max

DocRaptor runs the Prince PDF generator, and its feature list reads like a print shop’s: mixed page sizes and headers in one PDF, CSS-defined running headers, footnotes, floats to the top or bottom of a page, crop marks, bookmarks and CMYK colour. HTML forms become PDF forms, and output can be tagged for accessibility. There is no hard cap on pages or file size, synchronous jobs get 1 minute, async jobs get 10, and 30 requests can run at once.

Low volume is where it hurts. $15 for 125 documents is $0.12 each, though every document costs the same however large it is, and Max at $149 for 5,000 brings the rate to $29.80 per 1,000. The Free plan allows no overage, and signup asks for a card. DocRaptor advertises a 99.99% uptime guarantee and says it is SOC 2 and HIPAA compliant.

2. PDFShift: Chromium Conversions With Cheap Extra Credits

PDFShift pricing page with the monthly conversion slider and the Free plan of 50 credits
Image: PDFShift

Price: Starter $9 a month for 500 credits, or $90 a year | Engine: Chromium | Free tier: 50 credits a month | Per 1,000: $18.00 on Starter, $3.96 on Business

PDFShift is built for turning pages you already have into PDFs. It runs on Chromium, takes HTML or a URL, and every paid plan carries the full feature set: advanced headers and footers, CSS and JavaScript injection, waiting for custom elements, encryption, watermarks, S3 delivery and webhooks. Extra credits fall from $0.04 on Starter to $0.001 on the Shift 1M plan.

One credit covers 5 MB of output, so a 14 MB image-heavy PDF uses 3. The free plan stops at 15 MB files and a 30-second timeout, with no overage. Healthcare teams can set the is_hipaa parameter and sign a BAA, and documents are not stored unless the request asks for it. SOC 2 and ISO 27001 are not claimed, and the company is French.

3. Api2Pdf: Metered Billing Measured in Cents

Api2Pdf pricing page showing the $1 pay-as-you-go plan and a monthly cost estimator
Image: Api2Pdf

Price: $1 a month plus $0.001 per MB and $0.00019551 per compute second | Engine: Headless Chrome or wkhtmltopdf; LibreOffice for Office files | Free tier: one month of free credit | Per 1,000: about $0.49 plus the $1 base

Api2Pdf has one plan with no tiers, rate limits or page limits. With its typical document of 0.1 MB and 2 seconds, 1,000 PDFs use $0.10 of bandwidth and $0.39 of compute, about $1.49 for the month with the base fee. A heavier 1 MB file that renders for 10 seconds works out at $2.96 per 1,000.

Each request gets 2 GB of RAM and 90 seconds, with a V2 XL option for more, and output is deleted after 24 hours. The bill tracks render time, so slow, script-heavy pages cost more than the headline rate, and refunds are not offered.

4. Gotenberg: Self-Hosted Chromium With No Per-Document Fee

Gotenberg home page headline The PDF Press, Rebuilt with Getting started and GitHub buttons
Image: Gotenberg

Price: free under the MIT licence; you pay for servers | Engine: Chromium for HTML, URL and Markdown; LibreOffice for Office files | Free tier: the whole product | Per 1,000: your compute cost

Gotenberg is a Docker-based API you run yourself, pulled from Docker Hub more than 100 million times and starred 13.7k times on GitHub. Its Chromium route honours CSS @page size through preferCssPageSize, switches to print media on request, offers paper sizes from A0 to Tabloid and turns headings into native bookmarks.

Version 9 adds 30 pipeline stages (merge, split, stamp, sign, encrypt, redact), PDF/A and PDF/UA validation and Factur-X e-invoices. Images include arm64 plus AWS Lambda and Cloud Run variants. The trade is operational: you run, scale, patch and secure it, with no SLA behind it.

5. APITemplate.io: Chromium 153 With Documented Page Controls

APITemplate.io pricing page with the Billed annually toggle selected above the PDF only plans
Image: APITemplate.io

Price: PDF Basic $24 a month for 3,000 PDFs, or $19 a month billed annually | Engine: headless Chromium 153, with version 97 kept for older templates | Free tier: 50 a month, no card | Per 1,000: $8.00 monthly, $6.33 on annual billing

Among the Chromium services, APITemplate.io documents print behaviour in the most detail. It supports page-break-before, page-break-after and page-break-inside: avoid, repeats table headers on every page, sets size and margins per page with CSS @page, and fills headers and footers with page number, total pages, date, title and URL. JavaScript charts finish rendering before the page prints.

Its pricing page opens on annual billing, so the $19 figure is a yearly commitment; month to month, PDF Basic is $24. Async generation with webhooks and custom CSS start at that tier.

6. html2pdf.app: The Plainest Price List

html2pdf.app pricing page listing Free, Startup, Standard and Scale plans on monthly billing
Image: html2pdf.app

Price: Startup $9 a month for 1,000 credits, or $90 a year | Engine: Chromium | Free tier: 100 credits a month, PDFs up to 1 MB | Per 1,000: $9.00 on Startup, down to $2.29

html2pdf.app prints a per-1,000 rate beside each plan: $9.00 on Startup, $5.00 on Standard at $25 and $2.29 on Scale 100 at $229 for 100,000 credits. It renders on a Chromium engine it keeps current, takes HTML or a URL, and can output a single-page PDF as tall as the content, handy for receipts and long dashboards.

Quota is a hard stop. Past it, the API returns 403 until the month resets, with no overage and no rollover. Headers and footers are not named among its features, so test running page numbers before you build on it.

7. Nutrient DWS Processor API: Conversion Inside a Document Toolkit

Nutrient API pricing page in a dark theme showing the Free and Starter plans
Image: Nutrient DWS Processor API

Price: Starter $75 a month with $90 of usage, or $67 a month billed yearly | Engine: not disclosed | Free tier: $5 of usage a month | Per 1,000: $37.50 pay as you go, $31.25 on Starter

Nutrient, formerly PSPDFKit, treats HTML to PDF as one operation in a wallet that also pays for OCR at $1.50 per 1,000 pages, Office to PDF at $150 per 1,000 and digital signatures at $750 per 1,000. Its HTML route handles print media queries, fonts, headers, footers and fillable form fields.

For plain conversions it is the dearest metered option. Starter’s $90 of usage buys 2,400 HTML conversions and Growth at $275 buys 9,200. Free output carries a watermark until you add a wallet, and unused usage expires each period. Nutrient says it is SOC 2 Type 2 audited and GDPR compliant.

8. PDF.co: Per-Page Credits and a Wide API Catalog

PDF.co pricing page on the annual billing view with Basic, Personal and Business 1 plans
Image: PDF.co

Price: Basic $9.99 a month for 16,500 credits, or $8.99 a month billed annually | Engine: not disclosed; PyMuPDF handles post-processing | Free tier: 10,000 trial credits, no card | Per 1,000: $5.45 for one-page documents on monthly billing

PDF.co bills HTML and URL conversions at 9 credits per page, so Basic covers about 1,833 one-page documents and a five-page invoice uses 45 credits. The pricing page defaults to annual billing, which is where the $8.99 figure comes from.

Breadth is the draw: 66 operations, PDF/A and Factur-X among them, share one balance. PDF.co is part of Artifex, the company behind PyMuPDF, which also owns DocRaptor. Long reports are where per-page billing bites.

9. DocSpring: Ten-Page Units and Signed Paperwork

DocSpring pricing page showing Developer, Starter, Growth and Scale plans with monthly credits
Image: DocSpring

Price: Starter $49 a month for 10,000 credits | Engine: Chrome | Free tier: 200 credits a month | Per 1,000: $4.90 for plain HTML, $19.60 from a template

DocSpring counts in units of up to 10 pages, so a plain HTML or Markdown conversion costs 1 credit and a PDF built from a stored HTML template costs 4. Templates render in Chrome with an HTML header and footer on every page, Page 2 of 3 style numbering, CSS page breaks and sizes from Letter to A0 and CR80 cards.

Paid credits roll over for 12 months, and every plan chooses a US or EU data region. DocSpring says it is SOC 2 Type II audited and HIPAA compliant, with a BAA on paid plans.

10. CraftMyPDF: Template Editor First, HTML Second

CraftMyPDF pricing table from the Free plan to the Business plan on monthly billing
Image: CraftMyPDF

Price: Lite $29 a month for 1,200 PDFs, or $290 a year | Engine: not disclosed | Free tier: 50 a month, 3 templates | Per 1,000: $24.17 on Lite, $3.33 on Business

CraftMyPDF is built around a drag-and-drop editor, and coded designs live in an HTML component inside a template. One PDF is one credit whatever its page count, so a 40-page catalogue costs what a receipt does.

It ranks last for this reader because the raw HTML path is secondary and paged-media controls are not documented. Lite allows 6 templates and no overage price is published.

What 1,000 One-Page and Ten-Page Documents Cost a Month

Billing units decide the bill once documents grow. The table prices 1,000 documents a month at list rates on the cheapest monthly subscription, first as one-page files and then as ten-page reports, both under 5 MB.

API Billing unit 1,000 one-page documents 1,000 ten-page documents
Api2Pdf MB plus compute seconds $1.49 ($1 + 0.1 MB and 2 s each) $3.96 ($1 + 1 MB and 10 s each, assumed)
html2pdf.app 1 credit per 5 MB $9 (Startup, 1,000 credits) $9 (same 1,000 credits)
PDF.co 9 credits per page $9.99 (9,000 of 16,500 credits) $99.99 (90,000 credits, Business 2)
PDFShift 1 credit per 5 MB $24 (Boost, 2,500; Starter plus overage is $29) $24
APITemplate.io per PDF $24 (PDF Basic, monthly) $24
CraftMyPDF per PDF $29 (Lite) $29
Nutrient per operation $32.50 ($37.50 minus the free $5) $32.50
DocSpring 10-page unit $49 (Starter, 1,000 of 10,000 credits) $49 (still 1 credit each)
DocRaptor per document $75 (Premium, 1,250) $75
Gotenberg your servers infrastructure only infrastructure only

Per-page billing is the swing factor. PDF.co goes from one of the cheapest rows to one of the dearest when pages multiply by ten, while DocRaptor, which looks expensive for a one-page receipt, charges the same $75 for both. Api2Pdf’s figures are estimates built from file size and render time, not a fixed rate.

Page Breaks, Running Headers and @page Support by Service

Published paged-layout controls vary a lot from one service to the next:

  • DocRaptor: CSS-defined repeating or one-off headers and footers, footnotes, page floats, crop marks and mixed page sizes in a single file.
  • APITemplate.io: page-break properties, table headers repeated on each page, and @page size and margins set per page.
  • Gotenberg: header.html and footer.html with date, title, pageNumber and totalPages classes, @page size via preferCssPageSize, margins from a 0.39in default.
  • DocSpring: an HTML header and footer on every page, page numbering, CSS page breaks and per-margin control.
  • PDF.co and PDFShift: header and footer options with page numbers and dates, plus size, margin and orientation settings.

The same headless browsers that print PDFs also capture pages as images, and this guide to website screenshot software covers that side, from free tools to paid APIs.

wkhtmltopdf Is Archived: What That Means for Older Pipelines

wkhtmltopdf GitHub repository marked Public archive under a read-only notice
Image: GitHub

Plenty of older HTML-to-PDF stacks still call wkhtmltopdf, which converts HTML with QtWebKit. Its GitHub repository was archived by the owner on 2 January 2023 and is now read-only, and the project’s status page says QtWebKit was deprecated in 2015 and removed in 2016.

Api2Pdf still offers a wkhtmltopdf endpoint beside Headless Chrome, which helps when a legacy template depends on its layout. An archived repository receives no further fixes, so new templates belong on a maintained Chromium or Prince engine.

Free Tiers and Test Documents Before You Commit

  • DocSpring: 200 credits a month, enough for 200 plain HTML conversions.
  • html2pdf.app: 100 credits a month, files capped at 1 MB.
  • PDFShift: 50 credits a month with a 15 MB file limit and 30-second timeout.
  • PDF.co: 10,000 credits once, about 1,111 one-page conversions; not a monthly grant.
  • DocRaptor: 5 documents a month, plus unlimited watermarked test documents on every account.

How to Choose an HTML to PDF API

  • Book-style layouts, footnotes or crop marks: DocRaptor and its Prince engine.
  • Converting live pages or dashboards cheaply: PDFShift or html2pdf.app on Chromium.
  • The lowest bill on light, fast pages: Api2Pdf, with render time kept short.
  • Documents that cannot leave your network: Gotenberg on your own servers.
  • Signed forms and regulated paperwork: DocSpring; compare it with these DocuSign alternatives if signing is the main job.

Frequently Asked Questions

Is Chromium good enough for printing invoices?

For most invoices, yes. PDFShift, html2pdf.app and APITemplate.io handle page breaks, headers and footers, and APITemplate.io sets CSS @page size and margins per page. DocRaptor’s Prince engine earns its higher price when a layout needs footnotes, page floats or crop marks.

What does an HTML to PDF API cost per document?

At entry tiers, from about $0.49 per 1,000 on Api2Pdf (an estimate for a 0.1 MB, 2-second file) to $120 per 1,000 on DocRaptor Basic. Volume plans go lower: html2pdf.app reaches $2.29 per 1,000 and PDFShift’s Shift 1M plan works out under $1.

Can I run an HTML to PDF API on my own servers?

Gotenberg is built for that, as an MIT-licensed Docker image. DocSpring offers self-hosting on Enterprise contracts, and Api2Pdf sells a self-hosted container to enterprise buyers.

Related Articles

Priya Raghunathan
Written by Priya Raghunathan

Priya Raghunathan covers consumer and small-business technology for Fox Bulletin: apps, subscriptions and the hardware people actually buy. Comparisons are built from vendors' own pricing pages and App Store listings, on the principle that the headline price is rarely the price you end up paying.

View all posts →

Get the Fox Bulletin briefing

The stories that matter, in your inbox. No spam, unsubscribe anytime.

Newsletter signup will be available soon.