Generate PDF from html templates and print, view or send via email
Project description
Sendpdf is a simple Django app that can be used to generate PDF documents from html templates.
It can handle images and css very well. The generated PDF can then be displayed in the browser for printing and saving.
Alternatively, one can send the PDF to one or many email addresses.
It has been tested with Django==1.9.
Detailed documentation is in the official page.
Quick start
Install django-sendpdf:
$ pip install django-sendpdf
Install wkhtmltopdf:
Debian/Ubuntu:
$ sudo apt-get install wkhtmltopdf.
Add “sendpdf” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = ( ... 'sendpdf', )
In your Django settings add the location of wkhtmltopdf, default location is /usr/local/bin/wkhtmltox/bin/wkhtmltopdf, like this:
WKTHMLTOPDF_PATH = "wkhtmltopdf/path/here"
Include the sendpdf URLconf in your project urls.py like this:
url(r'^sendpdf/', include('sendpdf.urls', namespace='sendpdf')),
Run python manage.py runserver to see some demos:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.