Write PDF with no TeX installation
In native mode, --pdf-engine=embedded writes PDF 1.7 in pure Rust with no TeX Live and no external process.
What the engine writes
pandoc paper.md -o paper.pdfweavon paper.md --pdf-engine=embedded -o paper.pdf- PDF 1.7 with bookmarks and links
- Tables, code, callouts, and footnotes
- JPEG and PNG images
- PDF/UA tags with alt text
- Reproducible bytes with
SOURCE_DATE_EPOCH - PDF redlines from
weavon diff
Where it runs
The engine spawns no subprocess, so it works under --sandbox with an empty PATH. It also runs in the HTTP server, C ABI, WebAssembly, and the playground.
Known limits
- Latin text only, in the WinAnsi character set. Pass
--pdf-engine=lualatexfor other scripts. - Raw LaTeX emits
W_PDF_UNSUPPORTED_RAW_LATEX. - Compat mode uses the 15 external Pandoc engines instead.
Read born-digital PDF too
The opt-in Cargo feature reader-pdf reads born-digital PDF in native mode. Scanned image pages do no OCR and emit W_PDF_SCANNED_PAGE_NEEDS_OCR.
Make a PDF
Write a document
Write a Markdown file, for example
paper.md, with headings, a table, and an image.Convert it to PDF
Pick the embedded engine, and Weavon writes PDF 1.7 directly.
weavon paper.md --pdf-engine=embedded -o paper.pdfMake the bytes reproducible
Set
SOURCE_DATE_EPOCH, so that each run writes the same bytes.SOURCE_DATE_EPOCH=1700000000 weavon paper.md --pdf-engine=embedded -o paper.pdfWrite a PDF redline
Compare two versions and write the changes as a PDF.
weavon diff old.md new.md -o redline.pdf
Common questions
How do I make a PDF without LaTeX?
Run weavon input.md --pdf-engine=embedded -o output.pdf. The embedded engine writes PDF 1.7 directly with no TeX Live and no external program.
Which fonts does the embedded PDF engine use?
It uses the standard PDF fonts, so it writes Latin text in the WinAnsi character set only. For other scripts, use an external engine such as --pdf-engine=lualatex.
Does the PDF include bookmarks and links?
Yes. It writes bookmarks in /Outlines, links, tables, code blocks, callouts, footnotes, and JPEG or PNG images.
Is the PDF accessible?
The engine tags each PDF for PDF/UA, including alt text for figures.
Is the PDF output reproducible?
Yes. With SOURCE_DATE_EPOCH set, every run writes identical bytes.
Does the embedded engine work in compat mode?
No. It is a native feature, and compat mode calls the 15 external engines of --pdf-engine just like Pandoc 3.13.
