django-xhtml2pdf

Software Screenshot:
django-xhtml2pdf
Software Details:
Version: 0.0.3
Upload Date: 11 May 15
Developer: Christopher Glass
Distribution Type: Freeware
Downloads: 9

Rating: nan/5 (Total Votes: 0)

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

Requirements:

  • Python
  • Django

Other Software of Developer Christopher Glass

Comments to django-xhtml2pdf

Comments not found
Add Comment
Turn on images!