Skip to content

jfthuong/markdown2pdf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Markdown2PDF

Markdown2pdf is a command-line tool to convert markdown file into pdf, was originally designed for myself to create resume.

Building Status Code Health Downloads

Installation

To install Markdown2PDF you may need to install PDF convertion tool first,

Install Markdown2PDF by pip:

pip install markdown2pdf

Usage

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)

Trouble shooting

  1. ffi.h no such file or directory
apt-get install libffi-dev
  1. 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).

About

[Deprecated] A command line tool to convert markdown file to pdf.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 91.4%
  • Python 7.3%
  • Makefile 1.3%