Converting various document formats
This commit is contained in:
20
src/notes/4-converting-document-formats/note.md
Normal file
20
src/notes/4-converting-document-formats/note.md
Normal 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.
|
||||
|
||||
Reference in New Issue
Block a user