I have a project need to generate invoices, so I have to looking for a tool.

Looking for a PDF tool

My results:

NameGoodBad
puppeteerCan 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.
pdfmakeSuperfast and Lightweightuse 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:

This post is imported from: https://thebrownbox.hashnode.dev/poc-generate-invoice-pdf