Skip to main content

Convenience Python module for creating templated PDF documents

Project description

OzNetNerd PDF

Convenience Python module for creating templated PDF documents using Jinja2 and WeasyPrint.


pip3 install onnpdf


Pass a dictionary into onnpdf, and it will:

  1. Perform a "find and replace" operation
  2. Convert the template into a PDF document

Example dictionary as seen in code snippets:

kv_pairs = {
    'title': ' Demo PDF',
    'author': 'Will Robinson',
    'job_title': 'DevOps Specialist',
    'company': '',
    'email': '',
    'phone': '+61 00 000 000',
    'website': ''

The above produces this PDF document.


Project details

Release history Release notifications

This version


Download files

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

Files for onnpdf, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size onnpdf-0.0.1.tar.gz (1.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page