django-uwkhtmltopdf 0.5.0

A Django app to generate pdfs from templates using wkhtmltopdf

A simple Django app to generate pdfs from templates using wkhtmltopdf.

The code is basically a fork of django-xhtml2pdf that uses wkhtmltopdf to avoid xhtml2pdf shortcomings.

Please note that the app is thought to be simple not feature rich.

Usage

In settings.py:

WKHTMLTOPDF_CMD = '/path/to/wkhtmltopdf'

In views.py:

from django_uwkhtmltopdf.utils import generate_pdf

def myview(response):
resp = HttpResponse(content_type='application/pdf') result = generate_pdf('my_template.html', file_object=resp) return result
BSD License

Author

Riccardo Magliocchetti

Pip

django-uwkhtmltopdf==0.5.0

Classifiers

  • Environment :: Web Environment
  • Framework :: Django
  • Intended Audience :: Developers
  • Operating System :: OS Independent
  • Programming Language :: Python
  • License :: OSI Approved :: BSD License
  • Topic :: Software Development :: Libraries :: Application Frameworks
  • Topic :: Internet :: WWW/HTTP :: Dynamic Content
File Type Python Version Uploaded On Downloads
django-uwkhtmltopdf-0.5.0.tar.gz Source Sept. 21, 2013 2,022
Version Release Date
0.5.0 Sept. 21, 2013
0.4.0 Aug. 9, 2013
0.3.0 July 19, 2013
0.2.0 June 3, 2013
0.1.1 May 30, 2013
Date Package Version Action
Aug. 26, 2015, 12:30 a.m. django-uwkhtmltopdf 0.2.0 Release Created
Aug. 26, 2015, 12:30 a.m. django-uwkhtmltopdf 0.5.0 Release Created
Aug. 26, 2015, 12:30 a.m. django-uwkhtmltopdf 0.3.0 Release Created
Aug. 26, 2015, 12:30 a.m. django-uwkhtmltopdf 0.4.0 Release Created
Aug. 26, 2015, 12:30 a.m. django-uwkhtmltopdf 0.1.1 Release Created
Aug. 26, 2015, 12:30 a.m. django-uwkhtmltopdf Package Created