makesPDF
← Back to How to create a PDF

Template and document-generation APIs

By Jason Galea · Part of the How to create a PDF benchmark

Takeaway: Hosted template APIs trade server maintenance for per-document pricing, and their compliance and Unicode behaviour depends almost entirely on whichever engine sits underneath (LibreOffice, Chromium or Prince).

If you don't want to run Chromium, LibreOffice or a PDF library inside your own backend, there is a big category of hosted SaaS APIs built around "upload a template once, POST JSON, get a PDF back."

Sample note: We haven't run trial-key captures across individual commercial vendors yet, so there is no vendor-by-vendor scorecard row on this page. Instead of guessing, here is how the category splits under the hood, plus the two questions to check with any vendor's sample PDF before you commit.

Two architectures under the hood

Almost every hosted document-generation API falls into one of two buckets:

1. DOCX-template engines (Carbone, Docmosis, Adobe PDF Services)

You author a normal Word (.docx) or ODT template with placeholder markers, upload it, and send JSON data to an API. The service merges your data into the document and converts it to PDF using LibreOffice or a Word-class renderer.

  • What you get: Non-technical staff (legal, operations, finance) can edit templates in Microsoft Word without touching code.
  • Compliance profile: Roughly tracks our Word processors LibreOffice benchmark, depending on whether the vendor enables PDFUACompliance and PDF/A export options.

2. HTML-template SaaS (PDFMonkey, CraftMyPDF, APITemplate.io, PDFShift, DocRaptor)

You author HTML and CSS (or use a browser drag-and-drop editor that compiles to HTML) and POST JSON data to render a PDF.

  • Chromium-backed services (PDFMonkey, CraftMyPDF, APITemplate.io, PDFShift and similar): inherit the Headless browsers profile. The key question to check is whether the vendor turns Chromium's tagged: true flag on (many leave it off by default) and how they handle PDF/A, since Chromium itself cannot emit PDF/A. See PDFShift vs makesPDF for a concrete example.
  • Prince-backed services (DocRaptor): run PrinceXML instead of Chromium, which gives you full CSS paged media support (running headers, footnotes, @page rules) and much stronger PDF/UA and PDF/A capabilities, at higher per-document pricing.

What to test before picking a vendor

Don't take a marketing checkbox for "accessible PDFs" or "UTF-8 support" at face value. Before building an integration around a template API, render one test document containing a multi-page table, an image with alt text, Zürich, 東京 and 🚀, and drop the returned PDF into /validate and /tags. That takes two minutes and tells you immediately whether the vendor's underlying engine tags tables, embeds fonts, and passes veraPDF.

Pros and cons

Pros

  • Zero rendering infrastructure to operate: no Docker images, Chromium OOMs, font installs or security patches.
  • Many ship visual or Word-based template editors so non-developers can tweak copy and layouts.
  • Fast to wire up from any language via a single HTTP call.

Cons

  • Ongoing per-document or monthly subscription cost that scales with volume.
  • External dependency and data egress (you are sending document data to a third party).
  • Accessibility and PDF/A compliance vary wildly depending on what engine sits behind the API and which flags the vendor exposes.

When a template API is the right call

  • You generate invoices, quotes, certificates or contracts from app data and would rather pay a modest API bill than maintain Chromium or LibreOffice containers.
  • Non-developers need to own template edits in Word (DOCX-template APIs) or a visual editor.

If you want a hosted API built on its own deterministic layout engine rather than Chromium or LibreOffice, with PDF/UA-1 and PDF/A-2a on by default plus Markdown and AI/MCP tooling, see makesPDF.