Options (5)
-o, --outputbooleanConvert a Markdown file to PDF using `pdflatex` (the formats are determined by file extensions)
pandoc {{path/to/input.md}} {{[-o|--output]}} {{path/to/output.pdf}}-f, --frombooleanConvert the output from another command to PDF, using a specific PDF engine
{{command}} | pandoc {{[-f|--from]}} {{input_format}} --pdf-engine {{tectonic|weasyprint|typst|...}} {{[-o|--output]}} {{path/to/output.pdf}}-s, --standalonebooleanConvert to a standalone file with the appropriate headers/footers (for LaTeX, HTML, etc.)
pandoc {{path/to/input.md}} {{[-s|--standalone]}} {{[-o|--output]}} {{path/to/output.html}}-t, --tobooleanManually specify formats (overriding automatic format detection using the filename extension, or when there is no extension)
pandoc {{[-f|--from]}} {{docx|...}} {{path/to/input}} {{[-t|--to]}} {{pdf|...}} {{[-o|--output]}} {{path/to/output}}-L, --lua-filterbooleanTransform a document using a Lua script (see <https://pandoc.org/lua-filters.html> for more information)
pandoc {{path/to/input}} {{[-L|--lua-filter]}} {{path/to/filter.lua}} {{[-o|--output]}} {{path/to/output}}Examples (8)
Convert a Markdown file to PDF using `pdflatex` (the formats are determined by file extensions)
pandoc path/to/input.md [-o|--output] path/to/output.pdfConvert the output from another command to PDF, using a specific PDF engine
Convert to a standalone file with the appropriate headers/footers (for LaTeX, HTML, etc.)
pandoc path/to/input.md [-s|--standalone] [-o|--output] path/to/output.htmlManually specify formats (overriding automatic format detection using the filename extension, or when there is no extension)
pandoc [-f|--from] docx|... path/to/input [-t|--to] pdf|... [-o|--output] path/to/outputTransform a document using a Lua script (see <https://pandoc.org/lua-filters.html> for more information)
pandoc path/to/input [-L|--lua-filter] path/to/filter.lua [-o|--output] path/to/outputConvert a remote HTML file to markdown and print the result to `stdout`
pandoc [-f|--from] html [-t|--to] markdown https://example.comList all supported input formats
pandoc --list-input-formatsList all supported output formats
pandoc --list-output-formats