Converting various document formats

This commit is contained in:
2025-01-10 14:06:23 +01:00
parent d7297f0861
commit ecb567a41e

View File

@@ -0,0 +1,20 @@
# Converting various document formats
I was in need of a way to convert markdown documents + images into pdfs and came over the [pandoc](https://pandoc.org/) project which seems to be very powerful.
This is how i used it.
First we need to install some requirements:
```bash
sudo apt install pandoc texlive-latex-extra
```
Then i converted my file like this:
```bash
pandoc --from markdown document.md -o document.pdf -V geometry:margin=1in
```
The geometry part makes sure that the pdf utilizes a lot more of the documents width.