Skip to content

Markdown to PDF

Write or paste Markdown, see it styled as you type, and export a clean Letter or A4 PDF with tables, code blocks, page breaks and a page-numbered footer.

Header and footer

Use {page}, {pages}, {title}, {date}. Split with | for left, center and right. Shown on every page.

PDFs are printed by Chromium on Cloudflare and streamed back. Nothing is stored. Free: 10 PDF or screenshot renders a day per IP.

How to use it

  1. Paste your Markdown, for example a README, notes or a spec.
  2. Check the live preview on the right. A line with --- page-break --- starts a new page.
  3. Choose page size and margins, and edit the footer: {title} | Page {page} of {pages} is set by default.
  4. Click Make PDF, check the preview, and download.

Supported Markdown

  • Headings, lists, task lists, links and images (public image URLs)
  • Tables (GitHub style)
  • Fenced code blocks in a monospace font
  • A line with just --- page-break --- starts a new page

Why not print from the editor?

Most editors print with their UI colors, cut-off code lines and no page margins. This tool uses a print stylesheet made for paper: 11pt body text, wrapped code, tables that don't split mid-row, and margins that suit US Letter or A4.

Do it from code or an AI assistant

The same renderer is an HTTP API and an MCP tool, so this exact result can come from a script or from Claude, ChatGPT or Cursor. See the Render API reference and the MCP setup guide.

HTTP API

bash
curl -X POST https://render.cuelark.com/v1/pdf -H "content-type: application/json" \
  -d '{"markdown":"# Project brief\n\n| Item | Cost |\n|---|---:|\n| Design | $4,500 |","format":"letter","footer":"{title} | Page {page} of {pages}"}' \
  -o document.pdf

MCP tool call: html_to_pdf

json
{
  "method": "tools/call",
  "params": {
    "name": "html_to_pdf",
    "arguments": {
      "markdown": "# Project brief\n\n| Item | Cost |\n|---|---:|\n| Design | $4,500 |",
      "format": "letter",
      "footer": "{title} | Page {page} of {pages}"
    }
  }
}

Frequently asked questions

Is my Markdown uploaded?

The preview runs in your browser. When you click Make PDF, the HTML is sent once to the renderer to print and isn't stored.

Can I convert a README from GitHub?

Yes. Open the README, click Raw, copy the text and paste it here. Relative image links won't load, so use full URLs.

Related free tools from Cuelark

Updated November 10, 2026 by the Cuelark Team.