Skip to content

HTML to PDF API for SaaS

HTML to PDF API for SaaS Invoices and Customer Statements

SitePDF turns the HTML your product already renders into a PDF with one API call, and can keep a dated copy of each document it produces. It suits SaaS teams that send invoices, usage statements and reports to customers every month.

  • PDF and archive in one call
  • Plans from $49 a month
  • Your HTML stays yours

Short answer

SitePDF is an HTML to PDF API for SaaS products: post the HTML of an invoice, receipt or statement and get a PDF from managed Chromium. Starter API is $49 a month for 10,000 renders ($288 billed yearly), Growth is $99 a month for 50,000 ($588 yearly) and Scale is $299 a month for 250,000 ($1,788 yearly). With archive=true each PDF is also stored with its capture time.

Written and fact checked by the SitePDF team.

Which plan fits which SaaS

Count one render per customer document and add headroom for the billing day. The customer counts below are examples, so use your own.

Plan Renders a month Price Archive kept Concurrent renders Example workload
Starter API 10,000 $49 a month, $288 billed yearly 90 days 3 About 8,000 customers each getting one monthly invoice
Growth 50,000 $99 a month, $588 billed yearly 365 days 10 Invoices plus a usage statement for about 20,000 accounts
Scale 250,000 $299 a month, $1,788 billed yearly 3 years 30 A platform producing documents on behalf of many tenants

SitePDF figures come from our own pricing page. See pricing for the current plans.

The documents a SaaS product sends

Subscription invoices and receipts. The billing page already shows plan, seats, tax and total in HTML. Rendering that same template means the emailed PDF and the in-app view cannot disagree.

Usage statements and overage reports. These carry long tables and sometimes a chart. A browser engine repeats table headers across pages and draws the chart the way the dashboard does.

Customer reports and exports. Monthly performance reports, audit summaries and contract schedules are usually built once for the web and then wanted as a PDF by a customer who forwards them to finance.

The billing day is the real sizing problem

Most SaaS invoices are generated in a burst on the first of the month, not evenly. A queue worker that renders 8,000 invoices in a self-managed browser pool needs enough memory for the peak and sits idle the other 29 days.

With the API, your worker sends one request per invoice and the plan decides how many run at once: 3 on Starter API, 10 on Growth and 30 on Scale. If the first of the month matters to you, the concurrency number is the one to compare before the render count.

A worked example with numbers

These are planning assumptions, so replace them with your own. A SaaS has 15,000 paying accounts, sends each an invoice and about a third also get a usage statement, so roughly 20,000 renders a month. That is above Starter API, so Growth at $99 a month ($588 billed yearly) fits with room to grow.

If the same team ran its own browser pool and spent 20 hours building it and 2 hours a month keeping it running at $100 an hour, labor alone is $4,400 in year one before any server cost. The HTML2PDF API pricing example shows that table in full.

Producing an old invoice when a customer asks

Customers ask for a copy of an invoice from last spring, and sometimes dispute what it showed. Add archive=true and the render is stored with its capture time, retrievable for the length of your plan: 90 days on Starter API, 365 on Growth, three years on Scale. Anything you must keep longer should also go into your own storage.

SitePDF renders the HTML you send. It does not calculate tax, number invoices or certify a document as valid in any jurisdiction, so your billing system still owns those rules.

The invoice PDF archive page shows the fields each stored copy returns. Multi page statements also take a "Page 2 of 7" footer, see page numbers, headers and footers.

Who it is for and who it is not for

It is for SaaS teams with a developer who can make an HTTP call, that already have invoices and statements as HTML and produce from a few thousand to a few hundred thousand a month.

It is not for teams that need PDF signing, form filling or keeping every byte inside their own network, or for a founder who wants a no-code invoice tool. If your stack is Zapier or Make, the no-code PDF page is a better start, and shops should read the ecommerce page.

Render a subscription invoice from your own HTML and keep a dated copy.
curl -X POST https://api.sitepdf.com/v1/render \
  -H "Authorization: Bearer $SITEPDF_KEY" \
  -H "Content-Type: application/json" \
  -d '{"html": "<h1>Invoice INV-20418</h1>...", "format": "Letter", "archive": true}'

This is the documented API call shape. Full request and response walkthrough.

Questions about this job

How do I generate invoice PDFs from a SaaS app?
Render the invoice template to HTML as you do for the billing page, then send that HTML to an HTML to PDF API. SitePDF returns a PDF link from one call, and with archive=true it also stores a dated copy.
How much does an HTML to PDF API cost for a SaaS?
SitePDF Starter API is $49 a month for 10,000 renders, or $288 billed yearly. Growth is $99 a month for 50,000 renders and Scale is $299 a month for 250,000. Count one render per invoice or statement.
Can it handle the burst on the first of the month?
Send one request per document from your queue. Starter API runs 3 renders at the same time, Growth 10 and Scale 30, so a billing-day batch finishes faster on a higher plan.
Does it add tax or invoice numbers?
No. SitePDF renders the HTML you send. Your billing system decides numbering, tax lines and what an invoice must contain in each country.
How long are archived invoices kept?
Archived renders are kept for 90 days on Starter API, 365 days on Growth and three years on Scale. Download any PDF you must keep longer into your own storage.

Index

More PDF and archiving tools

Get started

Render and archive with one API call

A pixel perfect PDF and a dated copy of the page from the same request. Plans from $49 a month, half price billed yearly.

HTML to PDF, in your browser

Buy the plan