A Django app to generate pdfs from templates
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-xhtml2pdf-0.0.1.tar.gz
.
File metadata
- Download URL: django-xhtml2pdf-0.0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f173ac8324240cbeed12eeb63d5996c6b03093627720f0de808e521423b0da21 |
|
MD5 | 00a62b094a153b3facafd58d7d902fa2 |
|
BLAKE2b-256 | c01714eac702c17e9a054f80214fafc04d4c9b1d3071107d70c639c297d9d360 |