The HTML & CSS publishing engine

Your HTML.
Beautifully published.

From a single invoice to an entire book. Beautifully typeset PDFs and images, rendered locally with the web technologies you already use — straight from the browser, in your desktop or mobile app, or on your servers. Or let our API handle it.

From the browserWebAssembly + nativePDF · SVG · PNG · WebPOffline. On your terms.
book.html + CSS01 / INPUT
<!-- Full manuscript · 106 rendered pages -->
<main class="book">
  <section class="chapter">…</section>
  <!-- All chapters, all paragraphs. -->
</main>

<style>
  p { text-align: justify; hyphens: auto; }
  @page { size: A5; margin: 18mm; }
</style>
Palatine engineWebAssembly · runs locally
COMPLETE
ParseTypesetPaginateExport
756ms106 / 106 pages
02 / PUBLISHEDbook.pdf · 267 KiB
106pages
756 ms.An entire book in under a second

Animated benchmark replay · View measured results
15 November 2026 · AMD EPYC · 6-core Linux · medians of 15 runs. WASM: warm render after 16 warm-ups, initialization excluded. Native: complete CLI process. Source and artwork are illustrative.

More than a conversion

A publishing studio.
Inside your app.

The details that turn a document into something worth reading.

Typography

Knuth–Plass line breaking.

Browsers break justified text one line at a time, and it shows: tight lines next to loose ones, rivers of white. Palatine can compose each paragraph as a whole with the Knuth–Plass algorithm, the one behind TeX, choosing all the breaks together so that every line is evenly spaced.

Add hyphenation penalties, bounded word spacing, last-line control and optical margins, and you get pages that look typeset: books, magazines, long reports, anything that is mostly text.

How Knuth–Plass works
THE SPACE BETWEEN THE WORDS
A line at a time.Browser-style line breaking

Typesetting a book is mostly a matter of patience. Every line of a justified paragraph has to be filled to the same measure, and the space between words is the only thing the compositor can stretch. Break the lines one at a time and a long word at the wrong moment leaves a line full of holes.

Same words. Same width. Different line breaks. An illustration of paragraph-wide composition.

PDF standards

One source. Five kinds of PDF.

The same HTML and CSS make an everyday PDF, an accessible PDF or a print-ready PDF/X. Each standard is one option, and a document that cannot meet it fails with a clear message instead of a mislabelled file.

  • PDF

    Screens and everyday documents

    Vector text, embedded font subsets, links, bookmarks and document metadata.

    format: "pdf"
  • PDF/UA-1

    Accessibility

    Tagged structure, reading order, alternative text and language, in a strict mode.

    pdfUa: true
  • PDF/X-1a:2001

    Print-on-demand and offset

    Black and CMYK inks only. Transparency is flattened exactly, or refused.

    pdfX: "PDF/X-1a:2001"
  • PDF/X-3:2002

    Printers that ask for X-3

    The same inks and the same rules as PDF/X-1a, under the PDF/X-3 label.

    pdfX: "PDF/X-3:2002"
  • PDF/X-4

    Modern print workflows

    CMYK through your printer’s ICC profile, with transparency kept.

    pdfX: "PDF/X-4"

PDF/UA files are checked with veraPDF on our test documents. PDF/X files pass our own structural checks; no printer’s preflight has validated them yet, so have yours check a file before a print run. PDF/A is not supported. How PDF/X works

Two ways to publish

Your devices. Or our API.

The same publishing engine. Run it locally, from your users’ browsers to your servers — or call our hosted API when you would rather not.

Local engine · entirely yours

Web technologies.
Rendered locally.

Run the WebAssembly build straight from the browser, in a desktop or mobile app, or the native build on your servers. Your documents never leave the device that makes them.

Volume-basedlicense · 1 year of support and updates

Following years −50%

  • From the browser. The HTML and CSS you know, rendered on your users’ devices.
  • Unlimited documents. No per-document fees, no render time limit.
  • Entirely offline. No network calls, with full control over your data.
Hosted API · ready to call

One request.
We handle the rest.

POST your HTML and CSS from the language you already use. Receive a PDF or image ready to save, send or display — faster than DocRaptor, for a fraction of its price.

€5per month

+ €0.005 / document ~20× less than DocRaptor

  • No rendering infrastructure. We handle rendering and hosting.
  • Pay as you go. Only successfully generated documents count.
  • Every page included. A single page or an entire book, up to 5 minutes per render.
API reference
render.ts
const key = process.env.PALATINE_API_KEY;
const url = "https://api.palatine.page/v1/render";
const response = await fetch(url, {
  method: "POST",
  headers: {
    Authorization: "Bearer " + key,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    html: "<h1>Hi!</h1>", format: "pdf",
  }),
});
if (!response.ok) throw Error(response.statusText);
const pdf = await response.arrayBuffer();
Comparison

Palatine and PrinceXML

Prince is the reference for printing HTML. We test our paged media against Prince 15.1, page by page; here is where the two differ.

PALATINENative · WASM · APIPrinceXMLNative renderer
Direct hosted APIReady to call · €5 / month + €0.005 / documentThrough DocRaptor, a third party
On-premise pricingOne license for the builds in your quote, covering your entire company and server fleet, priced by volume$2,660–$3,800 per server
Paged mediaMargin boxes, running elements, footnotes, page floats, cross-referencesSame, with more years of edge cases
Paragraph composerKnuth–Plass, opt-inLine by line
Browsers, edge, serverlessWebAssembly: Node, Bun, browsers, WorkersNative binaries only
OutputsPDF, SVG, PNG, WebPPDF, PNG, JPEG
PDF standardsPDF/UA-1, PDF/X-1a, PDF/X-3 and PDF/X-4, each opt-in; no PDF/APDF/UA-1, PDF/X and PDF/A
JavaScript in documentsNot executedSupported

Read the full comparison

The cost of your next million pages

Find your plan.

One page or a whole book.
Choose your monthly volume and compare a month of rendering.

12,000 documents / year
100,000 documents / month
DOCRAPTOR API

Choose a monthly plan.

$75.00/ month

Premium plan
1,250 documents included monthly.

PALATINE LOCAL

Run it yourself.

Volume-basedlicense

From the browser, a desktop or mobile app, or your servers. No per-document fees, no render time limit.

Contact Us

At this volume, choose the Palatine API.Your estimated API cost stays within €250 / month.

Choose the API
Comparison

Palatine and Puppeteer + Chromium

A headless browser is the usual way to print HTML. We timed both on the same server, with the same documents: from a cold start, Palatine delivers an invoice 16× sooner. A browser that is already running is faster on a report made of tables.

From a cold start

One new process per document: a serverless function, a job, a script.

Invoice 1 page
Palatine native:57 ms
Puppeteer + Chromium:909 ms
Short report 24 pages
Palatine native:177 ms
Puppeteer + Chromium:1.13 s
Table-heavy report 28 pages
Palatine native:1.98 s
Puppeteer + Chromium:1.79 s

On a service that stays up

Engine and browser already running and warmed up.

Invoice 1 page
Palatine WebAssembly:35 ms
Puppeteer + Chromium:196 ms
Short report 24 pages
Palatine WebAssembly:157 ms
Puppeteer + Chromium:359 ms
Table-heavy report 28 pages
Palatine WebAssembly:1.78 s
Puppeteer + Chromium:1.08 s

Palatine: 15 runs, 15 November 2026, 96 MiB engine budget. Chromium: 7 runs, 13 November 2026, fastest headless mode. Same 6-core server, PDF output. Shorter is better.

PALATINENative · WASM · APIPuppeteer + ChromiumHeadless browser
One-page invoice, cold57 ms909 ms, of which 448 ms to launch the browser
Table-heavy report, warmSlower today: 1.78 s for 28 pages of tables1.08 s, 1.7× faster
What you deployOne 27 MiB binary, or 12 MiB of WebAssemblyA 261 MiB browser, Node.js and a process to supervise
Where it runsBrowsers, edge workers, Node, Bun, serversA server or container
Paged mediaMargin boxes, running headers, footnotes, page floats, cross-referencesPage size and margin boxes; no footnotes, running headers or cross-references
Paragraph composerKnuth–Plass, opt-inLine by line
JavaScript, the whole web platformNot executed; documents, not applicationsSupported

Read the measurements

Articles

From the blog

Start with the API today.

Sign in with your email, subscribe, create a key. The whole thing takes two minutes.