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.
apt-get install texlive-xetex
pandoc report.md -o report.pdfweavon report.md --pdf-engine=embedded -o report.pdfPDF engine tradeoffs
| Engine | Extra install | Runs in sandbox | Best fit |
|---|---|---|---|
Weavon embedded | None (9.38 MB total) | Yes, empty PATH | CI, Docker, browser WASM, Latin text reports |
lualatex or xelatex | TeX Live (hundreds of MB to 4 GB) | Spawns external process | Complex math macros, CJK, Arabic, academic journals |
weasyprint or Chrome | Python plus Cairo or Chromium | Spawns external process | Complex CSS paged-media layouts |
What works out of the box
- Headings and clickable
/Outlinesbookmarks - 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/weavonwith 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
Install Weavon
Download the 9.38 MB binary with one shell command.
curl -fsSL https://weavon.github.io/weavon/install.sh | shWrite PDF directly
Pass
--pdf-engine=embeddedto render PDF 1.7 in pure Rust.weavon report.md --pdf-engine=embedded -o report.pdfRun 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.
