Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install django-xhtml2pdf

How to install django-xhtml2pdf

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install django-xhtml2pdf
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.0.3 Available View build log
0.0.2 Available View build log
0.0.1 Failed View build log
Windows (64-bit)
0.0.3 Available View build log
0.0.2 Available View build log
0.0.1 Failed View build log
Mac OS X (10.5+)
0.0.3 Available View build log
0.0.2 Available View build log
0.0.1 Failed View build log
Linux (32-bit)
0.0.3 Available View build log
0.0.2 Available View build log
0.0.1 Failed View build log
Linux (64-bit)
0.0.3 Available View build log
0.0.2 Available View build log
0.0.1 Failed View build log
 
License
BSD License
Dependencies
Lastest release
version 0.0.3 on Sep 8th, 2011

THis project is 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

Subscribe to package updates

Last updated Sep 8th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.