Installation¶
Prerequisites¶
You need to install wkhtmltopdf.
The versions in Debian/Ubuntu repositories (installed using apt-get install wkhtmltopdf
)
have reduced functionality and you will most likely want to install one of the
stable binaries provided at http://wkhtmltopdf.org/downloads.html which provide
increased functionality (headless, patched Qt, better rendering support).
Installation on Ubuntu is as simple as;
wget http://download.gna.org/wkhtmltopdf/0.12/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
tar -xf wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
sudo cp wkhtmltox/* /usr/
Install¶
You can install django-pdfkit either via the Python Package Index (PyPI) or from github.
To install using pip;
$ pip install django-pdfkit
From github;
$ pip install git+https://github.com/alexhayes/django-pdfkit.git