Tim Maddison

How to convert Markdown to a pdf with Pandoc

Pandoc is an open document format designed for conversion between different document types. This enabled pdfs to be created without having to resort to LaTeX or other complicated software. This page is a list of useful tips followed by some more general information below.


pandoc file.md -o file.pdf

Landscape output

pandoc file.md -o file.pdf --variable=geometry:landscape

Modifying the Preamble

Pandoc 1.12 and above allow for a YAML metadata section, copying the following into