Markdown2pdf is a command-line tool to convert markdown file into pdf, was originally designed for myself to create resume.
To install Markdown2PDF you may need to install PDF convertion tool first,
Install Markdown2PDF by pip:
pip install markdown2pdf
You can use Markdown2PDF via simple command md2pdf
:
md2pdf resume.md
You can also appoint a theme by argument --theme
:
md2pdf resume.md --theme=github
Or, you can even using your self defined theme:
md2pdf resume.md --theme=path_to_style.css
By now, Markdown2PDF contains multi builtin themes:
- github (from GitHub.Inc)
- solarized-dark (from mixu/markdown-styles)
- ghostwriter (from mixu/markdown-styles)
ffi.h no such file or directory
apt-get install libffi-dev
OSError: library not found: 'libcairo.so.2'
This means you need to get some requirements installed first, see this page: [WeasyPrint fails with error on OSX](Kozea/WeasyPrint#79).