Documents

PDF generation. Print-quality.

Any URL to PDF. Configurable format, margins, headers, footers. Print-quality output from any web page.

Real output

notion.so → PDF

One API call converts any web page into a print-quality PDF document. This is Notion's homepage captured as a multi-page A4 PDF.

notion-homepage.pdf
A43 pages
Notion PDF page 1
1 / 3
Notion PDF page 2
2 / 3
Notion PDF page 3
3 / 3
A4
210 × 297mm
20mm
margins
3
pages
~1.2s
render time

Capabilities

Full control over your PDFs

Page formats

A4, Letter, Legal, Tabloid, or custom dimensions. Portrait and landscape orientation.

Margins & spacing

Configurable top, right, bottom, left margins in pixels or CSS units. Precise layout control.

Headers & footers

Custom HTML headers and footers with template variables — page number, total pages, date, title, URL.

API

One endpoint, full customization

The /v1/pdf endpoint accepts all standard PDF options — format, orientation, margins, and custom header/footer templates with page number variables.

POST /v1/pdf
{
  "url": "https://example.com/report",
"format": "A4",
"landscape": false, "margin": { "top": "20mm", "bottom": "20mm", "left": "15mm", "right": "15mm" }, "display_header_footer": true,
"footer_template": "<div style='font-size:8px;text-align:center;width:100%'><span class='pageNumber'></span> / <span class='totalPages'></span></div>"
}

Advanced

Fine-grained control

Print backgrounds

Include or exclude background colors and images. Control exactly what appears in the PDF.

Page ranges

Generate specific pages only. Useful for extracting sections from long documents.

Scale

Scale content from 0.1 to 2.0. Fit more content per page or zoom in for readability.

JavaScript execution

Wait for dynamic content to load before generating. Custom wait strategies and JS injection.

Use cases

What developers build with it

Invoices & receipts

Generate PDFs from your invoice templates. Pixel-perfect, every time.

Reports & dashboards

Convert data dashboards to shareable PDF reports. Schedule with webhooks.

Legal & compliance

Archive web pages as PDF documents. Timestamped, complete, print-ready.

URLs in, PDFs out

One API call. Full control over format, margins, and headers.