PRODUCT / GENERATION & CONVERSION

Markdown to PDF API

Convert GitHub-flavoured Markdown to PDF on POST /v1/pdf. Same Chromium print options as HTML, for reports and agent-generated docs.

Read the implementation guide
DOCUMENT / 001PDF · A4
a.Acme StudioDesign with intention.

Invoice

INV—2026—042
September 07, 2026
Northstar Labs

120 Market Street
San Francisco, CA 94103

Due September 21, 2026
USD · Bank transfer

DESCRIPTIONQTYAMOUNT
Brand identity system1$2,400.00
Website design1$4,800.00
Development handoff1$1,200.00
Subtotal$8,400.00
Tax (0%)$0.00
Total due$8,400.00
Thank you for building with us.01 / 01
templateData{ "total": 8400 }
invoice.pdfSample output · ready to inspect
HTML + DATAPRODUCTION PDF

Use markdown on POST /v1/pdf for release notes, reports, and agent-generated docs where the source is already GFM. RelayPDF renders Markdown to HTML, then Chromium prints it. For pixel-perfect invoices, prefer HTML or a published Handlebars template. markdown is GFM. Same Chromium print options as html. Provide exactly one of html, url, markdown, or templateId.

Good fit

Release notes, reports, invoices, and agent-generated docs where source text already exists.

Response modes

Use binary for immediate download, url for a 24-hour file link, or async for queued delivery.

curl

Simple markdown conversion.

POST /v1/pdf
curl https://api.relaypdf.com/v1/pdf \
  -H "Authorization: Bearer pdf_live_..." \
  -H "Content-Type: application/json" \
  -d '{"markdown":"# Weekly report\n\n- shipped\n- blocked","filename":"report.pdf"}' \
  --output report.pdf