Product

Markdown to PDF API

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