Generate PDFs from django models by overlaying text onto an existing pdf
Project description
smmapdfs is used for generating pdf files from django models by overlaying the text of fields onto a background pdf file. It differs from other django pdf apps such as django-easy-pdf and django-pdfkit in that it is intended to be used by graphics designers wishing to overlay some text onto a pre-prepaired pdf background.
smmapdfs can further be used to send out emails with the pdfs. It was initially intended to send out diplomas at the end of a cycling competition.
Integration:
See the example app for an example of how to integrate smmapdfs into your django application.
Configuration:
In smmapdfs admin - For each campaign add a new pdfsandwich type, uploading a PDF and setting its size. There can only be one pdfsandwich type per campaign - For each pdfsandwich type and langauge add a pdfsandwich email - For each pdfsandwich type add the fields you want displayed on the pdfsandwich, setting their coordinates in millimeters
Generating pdfsandwichs:
In your application’s admin - Select the objects you wish to to generate pdfsandwichs for - Select the Generate PdfSandwichs action
Sending pdfsandwichs:
In pdfsandwichs admin select the pdfsandwichs you want to send and use the send action
Generating pdfsandwichs using Celery:
In the your application’s admin select a parent object and use the Generate PdfSandwichs action
Sending pdfsandwichs using Celery:
In the pdfsandwichs admin select a pdfsandwich type and use the Send action
Hints:
It is a good idea to generate a pdfsandwich for yourself and send it to yourself before using the batch Celery method so as to test the process and the email formatting.
Notes about email formatting:
The emails are sent as HTML messages. Text messages are created by stripping out the HTML tags. This means that links should be written in their full form.
SPAM
Please remember, both the United states and the EU have criminal penalties for sending unsolicited SPAM email messages. This app is not designed or intended for such a purpose. Please do not use it to send SPAM. (This note has no legal implications for licensing purposes. The software is licensed under the GNU LGPLv3.0)
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 Distributions
Built Distribution
Hashes for django_smmapdfs-0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0c3f13defc7d8e81b249ebddf301204cb037e7a55c80c4cbdf0cfad2095fd28 |
|
MD5 | 7fb6c9b8fe0f179c4a3a3c31e652a8c9 |
|
BLAKE2b-256 | fede8b22b856f66d8c63a64b6b55ab607b215a20ab6b6045c7aea5825030e3ab |