

Use a third-party PDF generation application

However as most of these reports would span more than one page, getting around the formatting issues was deemed to be too much work for the moment.Ģ. Some experiments with this looked promising. Why Puppeteerīefore settling on Puppeteer we did look at a few other options:Īt a basic level this would create an image using the HTML Canvas that we could then save as a PDF on the client side. For the frontend we are using reactjs with typescript. The Development Project's Tech Stackįor the API the project uses Node.js and hapi with typescript. When generating a PDF, we need to be able to maintain these report filters and options so a user can generate exactly what they have selected. All these reports have extensive filters and options that change what data is shown and how it is shown. In a recent project we had a requirement to add in the option to generate PDFs to an already extensive reporting tool built using React. Developing Software to Generate PDFs: The Background
