A django app to render django templates as PDF files.
Project description
django-renderpdf
==============
**django-renderpdf** is a Django app to render django templates as PDF files.
Introduction
------------
Rendering PDFs for web developers is generally pretty non-trivial, and there's
no common approach to doing this. django-renderpdf attempts to allow reusing
all the known tools and stills when generating a PDF file in a Django app:
* Use Django template files, which are internally rendered as HTML and them PDF
files.
* Use staticfiles app to include any CSS or image files.
* Simply subclass a ``PDFView`` class which has an interface very similar to
Django's own built-in ``View`` classes.
Background
----------
django-renderpdf actually started out as code on multiple of my own projects
(including some public ones).
After some time, it became clear that I'd been copy-pasting PDF-related bits
across different projects, and since co-workers expressed interest in this
design (using the Django templating system to generate PDFs), it finally made
sense to move this into a separate library.
Because of this, documentation is still a work in progress (the code far
outdates this API being public), and while unit tests are lacking, this code
has had ample field testing
Licence
-------
Django-renderpdf is licensed under the ISC licence. See LICENCE for details.
==============
**django-renderpdf** is a Django app to render django templates as PDF files.
Introduction
------------
Rendering PDFs for web developers is generally pretty non-trivial, and there's
no common approach to doing this. django-renderpdf attempts to allow reusing
all the known tools and stills when generating a PDF file in a Django app:
* Use Django template files, which are internally rendered as HTML and them PDF
files.
* Use staticfiles app to include any CSS or image files.
* Simply subclass a ``PDFView`` class which has an interface very similar to
Django's own built-in ``View`` classes.
Background
----------
django-renderpdf actually started out as code on multiple of my own projects
(including some public ones).
After some time, it became clear that I'd been copy-pasting PDF-related bits
across different projects, and since co-workers expressed interest in this
design (using the Django templating system to generate PDFs), it finally made
sense to move this into a separate library.
Because of this, documentation is still a work in progress (the code far
outdates this API being public), and while unit tests are lacking, this code
has had ample field testing
Licence
-------
Django-renderpdf is licensed under the ISC licence. See LICENCE for details.
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
django-renderpdf-0.1.0.tar.gz
(19.0 kB
view hashes)
Built Distribution
Close
Hashes for django_renderpdf-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e563a1bc2258d7131f6adc783873c3ae67197be65d8edf931cc6942dd41bfe13 |
|
MD5 | 78d1ad4c1c5e834269efc2b2795d60b7 |
|
BLAKE2b-256 | 4216bd3a271c999581d79348c24cf94cd5f6c78767d1f9e9094d84411681893b |