The Document Engine
for AI workflows

Pixel-perfect PDFs from Markdown and JSON

From AI Markdown and JSON to a finished PDF.

Papermill takes markdown and data, applies your template, and returns a production-ready PDF.

1
curl -X POST https://api.papermill.io/v2/pdf?template_id=papermill-simple-report \
2
-H "Authorization: Bearer $PAPERMILL_API_KEY" \
3
-H "Content-Type: text/markdown" \
4
-o quickstart.pdf \
5
--data-binary @- <<EOF
6
# Q3 Revenue Summary
7
 
8
Quarterly performance across our core product lines.
9
 
10
| Product | Revenue | Growth |
11
|---------------|--------------|--------|
12
| Platform | £482,000 | +18% |
13
| Add-ons | £124,000 | +42% |
14
| Services | £67,000 | -3% |
15
| **Total** | **£673,000** | **+19%** |
16
 
17
Strong quarter overall, driven by add-on adoption.
18
EOF

Want to try it yourself? Check out the Sandbox

Built for AI

AI generates the content. Papermill turns it into documents.

Agents

Agents

Give your agent access to Papermill’s MCP server or API and document generation becomes just another tool call.

AI Workflows

AI Workflows

Slot Papermill into your n8n, Make or in-house pipeline. The workflow generates content and Papermill turns them into the finished PDF.

AI-Native SaaS

AI-Native SaaS

Papermill lets you ship production-grade PDF generation without building a rendering engine into your product.

Sample Documents

Built with Press. Powered by Papermill.

Modern Letter

Clean, professional correspondence. Data-driven fields, content that flows across pages.

Property Flyer

Adaptive layout with automatic text sizing. Markdown content and structured property data.

Modern Report

Long-form professional document. Table of contents, pagination, cross-references — all automatic.

Magazine

Text flows between frames across pages. Arbitrary layouts, multi-column designs, text running between frames.

Magazine

Text flows between frames across pages. Arbitrary layouts, multi-column designs, text across frames.

Comparison Table

Papermill vs HTML-to-PDF tools and Open-Source (OSS) PDF libraries

Feature

Feature

Papermill

HTML-to-PDF

(Puppeteer, wkhtmltopdf)

HTML-PDF

OSS PDF Libraries

(ReportLab, PDFMake)

OSS

Markdown input

Markdown input

Native

No

No

Typography

(hyphenation, widow/orphan)

Typography

Built in

Partial

Basic anti-widowing

Pagination

Pagination

Automatic, configurable

CSS @page, limited control

Limited callbacks

Table of contents

Table of contents

Built in

Custom JavaScript

Manual

Auto table layout

Auto table layout

Auto-size, auto-rotate

Overflows

Manual

JSON data binding

JSON data binding

Native

Template engine required

Manual or Python templating

Manual or Python templating

MCP server

MCP server

Yes

No

No

Browserless

Browserless

Yes

No

Yes

Available

Available

Not available

Not available

Limited / Partial

Limited/Partial

Powering AI Workflows

Trusted by AI teams building production-grade document workflows.

"I've tried using all the open source solutions out there ... I spent hours getting the text to perfectly line up, or putting those background boxes in the right place. With Papermill, you declare what you want in the Press language and it works."

4 / 4

Douglas McNeil

CEO

EOLAS

Jon Bradshaw

CTO

Diligentsia

Michael Rustell

CEO

Inframatic

Thomas Fitzsimmons

CEO

My Practice Manager

"Papermill has empowered us to deliver our geospatial intelligence platform, THEIA - allowing our team to focus on core technologies while Papermill handles the document creation with precision and speed."

1 / 4

Douglas McNeil

CEO

EOLAS

Jon Bradshaw

CTO

Diligentsia

Michael Rustell

CEO

Inframatic

Thomas Fitzsimmons

CEO

My Practice Manager

"I've tried using all the open source solutions out there ... I spent hours getting the text to perfectly line up, or putting those background boxes in the right place. With Papermill, you declare what you want in the Press language and it works."

1 / 4

Douglas McNeil

CEO

EOLAS

Jon Bradshaw

CTO

Diligentsia

Michael Rustell

CEO

Inframatic

Thomas Fitzsimmons

CEO

My Practice Manager

Supported By

Pricing

Start free. Scale when you're ready.

Free

250 Pages / month ⋅ Papermill Branding ⋅ Community Support

Developer

Free

For MVPs and side projects.

Explore the API

£49/month

£49/month

2,000 pages / month

250 pages / month

Remove Papermill Branding

Papermill Branding

Remove Papermill Branding

Unlimited Templates

Unlimited Templates

MCP server

MCP server

Developer

For MVPs and side projects.

£49/month

2,000 pages / month

Remove Papermill Branding

Unlimited Templates

MCP server

MOST POPULAR

Growth

For production workflows.

£169/month

£169/month

10,000 pages / month

Email Support

Email Support

1 Custom Template

1 Custom Template

Everything in Developer

Everything in Developer

Premium

Product teams at scale.

£549/month

£549/month

50,000 pages / month

Priority Email Support

Priority Email Support

3 Custom Templates

3 Custom Templates

Everything in Growth

Everything in Growth

Enterprise

For enterprise and compliance workflows

Enterprise Support

Custom Development

High Volume

Book a Call

Enterprise

For enterprise and compliance workflows

SLA

·

Large Document Service

·

On-Prem Available

Book a Call

All prices exclude VAT

FAQs

Frequently asked questions

Everything you need to know before you start.

Why not HTML-to-PDF?

Why not ReactPDF?

Can AI generate Press?

Is it deterministic?

How customisable is the layout?

What is included in the Framer template?

Does it support complex pagination and tables?

Why not LaTeX?

Is my data stored on your servers?

Can I use Papermill with LangChain/AutoGPT/n8n etc.?

Can Papermill be used for traditional document generation?

What happens if I exceed my page limit?

Start generating documents today

Get your API key and generate your first PDF in under five minutes.