Convert Markdown to PDF without LaTeX

Run weavon paper.md --pdf-engine=embedded -o paper.pdf to write tagged PDF 1.7 with no TeX Live, no Chromium, and no external binaries.

Skip gigabytes of TeX Live

Traditional Pandoc PDF builds install hundreds of megabytes of TeX packages or a headless browser. Weavon embeds a pure-Rust PDF 1.7 writer inside the same 9.38 MB binary.

Pandoc plus TeX Live
apt-get install texlive-xetex
pandoc report.md -o report.pdf
Weavon alone
weavon report.md --pdf-engine=embedded -o report.pdf

PDF engine tradeoffs

How Weavon embedded PDF compares with external PDF engines.
EngineExtra installRuns in sandboxBest fit
Weavon embeddedNone (9.38 MB total)Yes, empty PATHCI, Docker, browser WASM, Latin text reports
lualatex or xelatexTeX Live (hundreds of MB to 4 GB)Spawns external processComplex math macros, CJK, Arabic, academic journals
weasyprint or ChromePython plus Cairo or ChromiumSpawns external processComplex CSS paged-media layouts

What works out of the box

  • Headings and clickable /Outlines bookmarks
  • Tables, fenced code blocks, and footnotes
  • Embedded JPEG and PNG images with alt text
  • PDF/UA accessibility structure tags
  • Deterministic bytes via SOURCE_DATE_EPOCH
  • Docker image ghcr.io/weavon/weavon with no TeX

Embedded PDF uses standard PDF fonts for Latin text (WinAnsi) and warns with W_PDF_UNSUPPORTED_RAW_LATEX on raw TeX blocks.

Build your first PDF without LaTeX

  1. Install Weavon

    Download the 9.38 MB binary with one shell command.

    curl -fsSL https://weavon.github.io/weavon/install.sh | sh
  2. Write PDF directly

    Pass --pdf-engine=embedded to render PDF 1.7 in pure Rust.

    weavon report.md --pdf-engine=embedded -o report.pdf
  3. Run in CI or Docker

    Use the distroless container image with no TeX layer and deterministic timestamps.

    SOURCE_DATE_EPOCH=1700000000 docker run --rm -v "$PWD:/data" \
      ghcr.io/weavon/weavon report.md --pdf-engine=embedded -o report.pdf

Common questions

Can I convert Markdown to PDF without installing LaTeX?

Yes, run weavon report.md --pdf-engine=embedded -o report.pdf. Weavon renders PDF 1.7 directly in Rust without TeX Live or any external helper.

Does Weavon still support LaTeX PDF engines when I need them?

Yes. Weavon supports all 15 external --pdf-engine backends from Pandoc 3.13, including lualatex, xelatex, pdflatex, typst, and weasyprint.

Why is embedded PDF limited to Latin text?

The built-in engine writes standard PDF fonts in the WinAnsi character set to keep the binary small and free of bundled font licences. Use --pdf-engine=lualatex for non-Latin scripts.

Can I build PDFs inside a minimal Docker image?

Yes. ghcr.io/weavon/weavon contains no shell and no TeX installation, yet generates PDF 1.7 directly.