# Pandoc Convert Document

[Pandoc](https://pandoc.org/index.html) is a universal document converter, such as PDF, Docx, and others.

## Install

Download from the [Windows package installer](https://github.com/jgm/pandoc/releases/tag/2.7.2)

Alternatively, you can install pandoc using [Chocolatey](https://chocolatey.org/):

```
choco install pandoc
```

Chocolatey can also install other software that integrates with Pandoc. For example, to install rsvg-convert (from librsvg, covering formats without SVG support), Python (to use Pandoc filters), and MiKTeX (to typeset PDFs with LaTeX):

```
choco install rsvg-convert python miktex
```

## Example Usages

Convert Markdown to Docx

```
pandoc -s -o output.docx input.md
```

Convert Markdown to PDF

```
pandoc -s -o output.pdf input.md
```

## Reference

* [Installing pandoc](https://pandoc.org/installing.html)
* [Pandoc Demo](https://pandoc.org/demos.html)
* [Pandoc User Guide](https://pandoc.org/MANUAL.html#)
* [Install chocolatey](https://chocolatey.org/install)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nicholashew.gitbook.io/knowledge/programming/misc/pandoc-convert-document.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
