skip to navigation
skip to content

Not Logged In

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
 
File Type Py Version Uploaded on Size
django-uwkhtmltopdf-0.5.0.tar.gz (md5) Source 2013-09-21 4KB
  • Downloads (All Versions):
  • 17 downloads in the last day
  • 68 downloads in the last week
  • 411 downloads in the last month