Skip to main content

Create nice-looking PDF reports from HTML content.

Project description

Travis CI build status

PDF Reports (complete documentation here) is a Python library to create nice-looking PDF reports from HTML or Pug templates. It features modern-looking components (via the Semantic UI framework) and provides routines to embed tables or plots in the documents.

Example of use

Your Pug template file template.pug may look like this (see a full example):

#sidebar I am the text in the sidebar.

h1 {{ title }}

  p Oh hi there ! I am some text in a cool box.

Your Python code will be as follows:

from pdf_reports import pug_to_html, write_report
html = pug_to_html("template.pug", title="My report")
write_report(html, "example.pdf")

And your final result may look like this (PDF file):


PIP installation:

pip install pdf_reports

Web documentation:

Github Page

Live demo

License: MIT, Copyright Edinburgh Genome Foundry

Project details

Download files

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

Files for pdf_reports, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size pdf_reports-0.3.0.tar.gz (122.4 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 SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page