all AI news
Generate invoice PDF file using HTML template
DEV Community dev.to
Today, I'll walk you through the process of generating an invoice PDF file for your backend app or custom script which could be run from the command line. Let's get started! 🎉
Introduction
Node.js programming language will be used for simplicity.
Handlebars template engine to separate data from the presentation.
html2pdf.app to convert HTML to PDF, but as an alternative Puppeteer can be used also (you can find a complete tutorial How to convert HTML to PDF with puppeteer). …
app backend command command line data generate html introduction invoice language line node node.js pdf presentation process programming programming language simplicity template through