Converting various document formats
2025-01-10 - 1 minute read
I was in need of a way to convert markdown documents + images into pdfs and came over the pandoc 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.