Skip to content

Tutorials and Live Demos

Hello World

The first example any developer needs to understand the basics of ReportLab.

JSON to PDF Live Demo

json2pdf is the standard way ReportLab deploys a solution which accepts JSON input and produces PDF output.

AWS - JSON To PDF - Invoice Tutorial

Host ReportLab JSON2PDF in an AWS Elastic Beanstalk (EB) instance.

ReportLab Chart Galleries

ReportLab includes a flexible and powerful graphics library, supporting all of the standard business chart types, as well as custom data graphics.

QR Code PDF Generator Live Demo

ReportLab can generate PDF QR codes.

Flask x ReportLab Plus

Combination of a minimal web app and PDF generation.

Fund Report

Generate your very own fund report with dynamic graphics in RML.

Product Catalogue Tutorial

XML product listing converted to a fully customisable PDF in seconds.

Calling Card

An example of making a calling card for you and all your employees.

Custom Pointy Bar Chart Tutorial

An example of making a Custom Pointy Bar Chart

Downloads

We have a public Mercurial repository which you can browse online and clone 7 mini projects locally to play with. Our full test suite of RML examples is also included.

To pull this down, run this command,

hg clone https://hg.reportlab.com/hg-public/rlextra-examples/

then look at the README.

If you are stuck behind a firewall, our Mercurial repo has a link download a zip file

https://hg.reportlab.com/hg-public/rlextra-examples/archive/tip.zip

1) rml_tests/ - Our full test suite of RML examples.

2) invoice/ - A simple JSON to PDF project which is the standard way ReportLab deploys a solution which accepts JSON input and produces PDF output.

3) product_catalogue/ - An XML product listing converted to a fully customisable PDF in seconds.

4) graphic_card/ - This shows the use of reportlab/graphics to make a very simple "image card",

5) fundfacts/ - A Django project with some sample data and a landscape PDF report showing the techniques to create tables, charts and various types of content in our framework.

6) retrofitzero/ - A complex JSON to PDF project with a custom Diagra chart and PageCatcher examples.

7) long document/ - Shows how to create longer flowing documents with tables of contents and variable chapter headings.

8) hansard/ - Content from the UK Parliament's digital archive, formatted consistently with the online style, with code to pull down and format any debate.