asarch / wsprint

WeasyPrint front-end with own CSS style written in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wsprint

WeasyPrint front-end with own CSS style written in Python

Dependencies

In Debian-based distros, install them:

apt-get install python-dev libffi-dev libxslt1-dev zlib1g-dev

Preparing the virtual environment

Create it:

$ virtualenv --verbose --no-site-packages alpha

Activate the enviroment:

$ cd alpha && . bin/activate

Install WeasyPrint and the dependencies:

(alpha)$ pip --verbose install six packaging appdirs jinja2 weasyprint

Render the documents

To render a document:

(alpha)$ ./wsprint.py document.html

To render a document from URL:

(alpha)$ ./wsprint.py --url "https://en.wikipedia.org/w/index.php?title=Python_%28programming_language%29&printable=yes"

About

WeasyPrint front-end with own CSS style written in Python

License:Artistic License 2.0


Languages

Language:Python 73.3%Language:CSS 26.7%