

This Java reporting library enables you to create a dynamic report design.


Good news: this is possible with the library Puppeteer and its Python equivalent Pyppeteer.įollowing this idea, we will do the following: run a browser instance on Lambda, go to the HTML template, populate it with user data, generate a PDF file, and keep it in an S3 bucket.This tool is used to create new pdf documents, modify the ones that have already been created and extract contents from documents. Then I wondered if I could build an HTML template with all the wonderful visual things I need, “take a picture” of it, and “paste” it into a PDF. But years ago, those libraries were quite limited: the generated PDFs were visually poor, and the charts were kind of ugly. I first figured out using a PDF generation library like HTML2PDF or FPDF for example. The PDF reports had to be similar to or with the same visual identity as the content shown on the platform: styles, colors, fonts, etc.) using Python, so I was looking for a Pythonic solution as far as possible. I had developed the whole business core (calculations, projections, etc.During this time, I was working with a scalable serverless architecture on Amazon, so I needed to make the PDF generation work on Lambda.The whole project was very conventional from a technical point of view but the report generation part was damn interesting, I will share it in this article. Then, they could visualize a lot of awesome charts and projections, and download them as PDF reports. It was a typical SaaS app with a user register and login mechanism users could digit products, orders, and sales of the company on the platform. Some years ago, I participated in a project intended for small companies and entrepreneurs.
