[POC] Generate Invoice PDF

1 min read
I have a project need to generate invoices, so I have to looking for a tool.
Looking for a PDF tool
My results:
Name | Good | Bad |
puppeteer | Can generate from html/css (so easy to change template, and you can have a beautiful one) | - big and havy, the package is large and take a lot of ram (due to it using Chrome). Generate much slower then others. |
pdfmake | Superfast and Lightweight | use physical fonts, hard to edit template (it using its own json format for the template) |
Due to I want to generate the PDF in backend side so the time and the ram of the pupeteer is unacceptable.
So I choose pdfmake.
Luckily the Agent know the format of pdfmake, it help me very much with the format of the invoice.
Ref:
soucecode: https://github.com/thebrownbox/invoice-app
the app: https://invoicer.thebrownbox.dev
0
Subscribe to my newsletter
Read articles from The Brown Box directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
