RenderDock
Demo Pricing Docs Get early access

HTML to PDF API: build it yourself or pay for a renderer?

November 18, 2026

Every team that needs PDFs eventually runs the same calculation. Puppeteer is free, so self-hosting must be cheaper, right? The honest answer: it depends on how much your time costs and how much you enjoy paging yourself at 3am.

The visible cost of self-hosting

A VPS that runs headless Chromium comfortably is a few dollars a month. That is the whole bill on day one. You write a small service, point Puppeteer at it, and it works — for the first week.

Then the real costs arrive:

  • Concurrency. Chromium is memory-hungry. Ten simultaneous renders on a small box and the kernel starts killing processes. You now own a queue, a pool, and a retry policy.
  • Security. If you render user-supplied URLs, you are hosting an SSRF gadget. Someone will point your server at your own internal network. You need DNS checks, private-IP filtering, and sandboxing — and you need to keep them current.
  • Typography. The default print output of Chromium is ugly: tables with no rules, headings that collide with page breaks, no page numbers. You will spend days on a print stylesheet before the first customer calls the output "polished".
  • Maintenance. Chromium updates, Node updates, fonts, memory leaks, the one customer whose document has 400 pages and blocks your queue. None of it is hard. All of it is your problem forever.

What the hosted option costs

A rendering API charges per render — typically a few dollars per month for thousands of documents, with a free tier that covers prototyping. You trade a variable bill for the entire list above. The fixed costs of self-hosting are easy to see; the ongoing ones are easy to underprice.

When to build

  • You render at very high volume and the arithmetic clearly favors a dedicated server.
  • Your inputs are fully trusted and static — no user URLs, no external resources.
  • You enjoy infrastructure work and want the learning experience.

When to buy

  • Rendering is a feature of your product, not the product itself.
  • Your volume is in the hundreds to tens of thousands per month.
  • You render user-supplied content and do not want to become an SSRF expert.
  • You want the output to look designed — page numbers, hairline tables, real typography — without owning a print stylesheet.

RenderDock is in beta with a free tier of 200 renders a month — enough to replace a self-hosted prototype and see whether the math works for you. Read the API docs, or join the waitlist.

Set in Georgia and Segoe UI. Rendered by RenderDock.

© 2026 RenderDock — [email protected]

Blog Terms Privacy Refund