Markdown to PDF

Professional PDFs from Markdown.

HTML to PDF is a pain. You run a headless browser and keep print styles working after every update. legivel takes your Markdown and sends back a typeset PDF, from one API call, the editor or your AI agent. Nothing to install, 100 free documents a month.HTML to PDF is a pain to keep running. legivel typesets your Markdown instead, from one API call. 100 free documents a month.

Free for 100 documents a month, no card. Paid plans from $19 a month. No document storage.

Typeset, not printed

The same Markdown, two PDFs.

A common Markdown converter turned this file into a web page, and a browser printed it. legivel set the same file as a document. Below, page 1 of one file, both ways.

Printed from a browser
Page printed from a browser: the formula and the diagram stay as source text.
  • The formula stays as source text.
  • The diagram stays as code.
Typeset by legivel
The same page typeset by legivel: the formula and the flowchart are drawn, the table is aligned and the command wraps inside the page.
  • The formula is set as math.
  • The diagram is drawn as vector art.
  • The command wraps inside the page.

What usually breaks

What goes wrong in a PDF, and what legivel does about it.

Contents
Often goes wrong: No contents page with page numbers
With legivel: Page numbers, leader dots and bookmarks
Page breaks
Often goes wrong: A diagram split across two pages
With legivel: Each diagram on a page of its own, on request
Math
Often goes wrong: Left as source text in a file printed as it is
With legivel: Set as math, in vector glyphs
Diagrams
Often goes wrong: Mermaid left as a code block
With legivel: Drawn as vector art where you wrote them
Fonts
Often goes wrong: Different fonts on every machine
With legivel: Embedded in the file, 24 writing systems
TopicOften goes wrongWith legivel
ContentsNo contents page with page numbersPage numbers, leader dots and bookmarks
Page breaksA diagram split across two pagesEach diagram on a page of its own, on request
MathLeft as source text in a file printed as it isSet as math, in vector glyphs
DiagramsMermaid left as a code blockDrawn as vector art where you wrote them
FontsDifferent fonts on every machineEmbedded in the file, 24 writing systems

Three ways in

Write it, call it, or let an agent do it.

Editor

Write or paste Markdown, preview every page, download the PDF. Nothing to install.

  • Preview every page before you download
  • Upload a .md file or paste text
  • Light or dark document, every feature as a switch
Open the editor

REST API

Send Markdown in one request; the finished PDF comes back in the response.

curl -X POST https://api.legivel.com/v1/render \
  -H "Authorization: Bearer $LEGIVEL_API_KEY" \
  -H "Content-Type: text/markdown" \
  --data-binary @report.md \
  -o report.pdf
Quickstart

MCP server

Give Claude Code, Codex, Claude Desktop or any MCP client a render tool backed by your account.

Claude Code
claude mcp add --transport http legivel https://api.legivel.com/mcp --header 'Authorization: Bearer ${LEGIVEL_API_KEY}'
Codex
codex mcp add legivel --url https://api.legivel.com/mcp --bearer-token-env-var LEGIVEL_API_KEY
Connect an agent

Saved templates

Invoices and packing slips from your data, one call each.

An order has five line items or fifty. The template you fill today cannot take a varying number of line items.

Start from an invoice, a letter, a shipping label or a certificate, and put fields where the data goes. The editor shows the page the way the PDF prints it.

Then each document is one API call, or one tool call from your agent. JSON fills the fields, and a list or CSV fills the table, one row per item.

Open the template editor

Templates you save, with their sample records, are stored encrypted until you delete them.

PlaygroundOpen in editor

document.mdgfm

Press Convert to see the PDF.

Download watermarked PDF 路 Create a free account for 100 documents a month without a watermark, no card.

Who it is for

Documents people send, print and file.

An invoice with a code to pay, first pageA full report, end to end, first pageA product datasheet, first page

Developers

Invoices, statements and reports generated by your code, the same way every time, from one API call.

A short research article, first pageA compliance filing, first pageA travel itinerary, first page

Teams and writers

Papers, filings, handbooks and itineraries written in Markdown and delivered as documents people take seriously.

Agent flow diagrams, first pageBar and line charts, first pageA problem sheet, math inside prose, first page

AI agents

An agent writes Markdown well. legivel turns its answer, with tables, charts and diagrams, into a PDF a person can use.

33
kinds of diagram and chart
21
barcode types, QR included
24
writing systems with bundled fonts
69
languages hyphenated
100
free documents every month

Features

Everything renders. Every feature is a switch.

The Markdown you write, set as a document. Every feature can be switched off for one document; the output then falls back to plain text and the call never fails.

Tables, first page

Text and structure

  • Tables that repeat their header on every page
  • A table of contents with page numbers, bookmarks for every heading
  • Footnotes, task lists with real checkboxes, alerts
  • Book line breaking, curly quotes, no stranded lines
Text examples
Gantt charts, first page

Math and diagrams

  • LaTeX math, inline and on its own line, as vector glyphs
  • 33 kinds of Mermaid diagram and chart
  • A page of its own for a wide diagram, on request
  • Code in 23 languages, light or dark per block
Diagram examples
Styled QR codes, first page

Codes and graphics

  • 21 barcode types: QR, EAN, Code 128, Data Matrix, PDF417
  • Styled QR codes with a logo, still scannable
  • SVG drawings that stay sharp at any zoom
  • Images in the document or loaded from the web
Barcode examples
Right-to-left and world scripts, first page

Languages

  • Fonts for 24 writing systems, embedded in the file
  • Arabic and Hebrew right to left, mixed with Latin
  • Chinese, Japanese and Korean line breaking
  • Hyphenation in 69 languages, color emoji
Language examples

Your documents

Documents never stored

We generate the PDF in memory and never store the documents you convert or your PDFs.

Images handled with care

Images from the web are loaded for that one conversion and never kept.

Questions

Something else? support@legivel.com

Do I need an account?

Not to try it. The playground on this page and the Convert page make a watermarked PDF without an account. A free account gives you 100 documents a month without a watermark, no card.

What Markdown does legivel support?

CommonMark plus the GitHub extensions: tables, task lists, footnotes, definition lists, alerts and strikethrough. Beyond that, a [TOC] marker that renders with real page numbers, front matter that becomes the PDF's document information, code colored in 23 languages and color emoji.

Do Mermaid diagrams and LaTeX math really render?

Yes, as vector drawings, not as screenshots. Thirty-three kinds of Mermaid diagram and chart are drawn directly, where they are written in the text; on request, each diagram gets a page of its own, sized to fit and linked from the text. LaTeX math is drawn the same way, inline and on its own line.

Why does this look different from other converters?

A common converter turns your Markdown into a web page, and a browser prints that page. The printout has no contents page with page numbers. A diagram can be split across two pages. legivel typesets the document instead. You get a contents page with page numbers. On request, each diagram gets a page of its own.

Can I automate it, or use it from an AI agent?

Yes. Send your Markdown in one request and the finished PDF comes back, so it fits any script or build step. AI agents use legivel the same way through its MCP server. The editor on this page is that same converter with a preview in front of it.

What happens with my images?

Your images work out of the box. Images embedded in the document always render. Images linked from the web are loaded too, for signed in accounts, over a secure connection, each time you convert. We keep none of them: the images, your document and the finished PDF leave our server the moment the PDF is delivered. Images inside a template you save are stored with it, encrypted. How we load images.

What does it cost?

Free gives you 100 documents a month with no card and no watermark. Paid plans start at $19 a month for 1,000 documents. See plans.

Your next document, as a proper PDF.

100 documents a month free, no card and no watermark on what you download.