django-xhtml2pdf 0.0.3

Generate PDFs from templates

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
BSD License 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Christopher Glass
HOMEPAGE:
pypi.python.org
CATEGORY:
ROOT \ Internet \ HTTP (WWW)
django-xhtml2pdf is a wrapper code between the Django project and the xhtml2pdf project.

What it does is simply allow people to create xhtml2pdf templates using all the cool django things like STATIC_URL etc.. (like one would for a webpage template), and the utils function makes all the images and ressources appear in the pdf.

Usage

Simply do the following:

from django_xhtml2pdf.utils import generate_pdf

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

Last updated on August 31st, 2011

requirements

#PDF generator #Django templates #Django #xhtml2pdf #PDF #generator

Add your review!

SUBMIT