https://github.com/kxxoling/markdown2pdf
[Deprecated] A command line tool to convert markdown file to pdf.
https://github.com/kxxoling/markdown2pdf
Last synced: about 2 months ago
JSON representation
[Deprecated] A command line tool to convert markdown file to pdf.
- Host: GitHub
- URL: https://github.com/kxxoling/markdown2pdf
- Owner: kxxoling
- Created: 2015-04-25T14:27:00.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-02-10T09:13:34.000Z (over 6 years ago)
- Last Synced: 2025-07-21T01:25:55.602Z (3 months ago)
- Language: CSS
- Homepage: https://pypi.python.org/pypi/Markdown2PDF
- Size: 16.6 KB
- Stars: 63
- Watchers: 2
- Forks: 22
- Open Issues: 11
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Markdown2PDF
============Markdown2pdf is a command-line tool to convert markdown file into pdf,
was originally designed for myself to create resume... image:: https://travis-ci.org/kxxoling/markdown2pdf.svg?branch=master
:target: https://travis-ci.org/kxxoling/markdown2pdf
:alt: Building Status.. image:: https://landscape.io/github/kxxoling/markdown2pdf/master/landscape.svg?style=flat
:target: https://landscape.io/github/kxxoling/markdown2pdf/master
:alt: Code Health.. image:: https://pypip.in/download/markdown2pdf/badge.svg?period=week
:target: https://pypi.python.org/pypi/markdown2pdf/
:alt: DownloadsInstallation
------------To install Markdown2PDF you may need to install PDF convertion tool first,
Install Markdown2PDF by pip:
.. code-block:: shell
pip install markdown2pdf
Usage
-----You can use Markdown2PDF via simple command ``md2pdf``:
.. code-block:: shell
md2pdf resume.md
You can also appoint a theme by argument ``--theme``:
.. code-block:: shell
md2pdf resume.md --theme=github
Or, you can even using your self defined theme:
.. code-block:: shell
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``
.. code-block:: shell
apt-get install libffi-dev
2. ``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](https://github.com/Kozea/WeasyPrint/issues/79).