Search

Connectors

Contact support

Helpdesk portal

Generate and distribute PDF reports

You can generate a PDF report in Peliqan in different ways. In this example, we are using HTML to have full control over the layout over the report. The HTML is converted into a PDF document.

Generate PDF report for download

The Streamlit module in Peliqan st is only used in this example to render the HTML on screen to verify it. We use the Peliqan function pq.download_pdf_button() to show a download button. The download button converts the HTML to PDF and allows the user to download the PDF report.

Example low-code Python script in Peliqan:

Include charts in a PDF report

Here’s an example that includes a chart in a PDF report.

We use PyPlot to create the charts and we render the charts on screen using Streamlit st. This is a great way to build interactive apps with charts, where the same charts can be used on screen and in the PDF report.

Distribute PDF reports by email

Below is an example that generates a PDF report (including a chart) and sends the report by email, using Postmark. This scenario can be used to generate personalized reports at scale and distribute them by email. You can use the below code directly in Peliqan and configure a schedule, for example daily or weekly distribution of the reports.