Skip to content

Instantly share code, notes, and snippets.

@stefanschmidt
stefanschmidt / convert-md-pdf.sh
Last active October 12, 2022 07:30
Convert Markdown to PDF with custom page size and margins
# depends on Calibre (available via Homebrew Cask)
ebook-convert \
doc.md doc.pdf \
--extra-css=style.css \
--margin-left 72 \
--margin-right 72 \
--margin-bottom 72 \
--margin-top 72 \
--custom-size 8.5x11 \
--disable-font-rescaling \