Skip to main content

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.

Video tutorial:

./play.png

Instalation:

Sudo make me a pfd sandwich is published on Pypy as django-smmapdfs.

pip3 install django-smmapdfs

Integration:

See the example app for an example of how to integrate smmapdfs into your django application.

Configuration:

In smmapdfs admin:

  • For each competition add a new pdfsandwich type, uploading a PDF and setting its size. There can only be one pdfsandwich type per competition

  • For each pdfsandwich type and langauge add a pdfsandwich email

In your application’s admin:

  • For each pdfsandwich type add the fields you want displayed on the pdfsandwich, setting their coordinates left→right, bottom↑ᵘᵖ in millimeters

Generating pdfsandwichs:

In your application’s admin

  • Select the objects you wish to to generate pdfsandwichs for

  • Select the Make PdfSandwich action

Sending pdfsandwichs:

  • In your applications admin select the pdfsandwichs you want to send and use the send action

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

django_smmapdfs-1.2.0-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file django_smmapdfs-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: django_smmapdfs-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3

File hashes

Hashes for django_smmapdfs-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7a05e8467ca88f6dfb8de9575776546bd2091ff8f254b54e62ee45972df9f14
MD5 e8bf737d3449f732ba9c6dee16000f6d
BLAKE2b-256 b585a666a11eee5e81729f78d0be6991eb21c3924f577946d3454995eab8ad9e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page