Need Help Choosing a NodeJS Package for Creating HTML to PDF Documents

I am currently working on a project that involves converting HTML code or webpages into PDF invoices and documents. Previously, on a Windows server, I used the ‘html-pdf-node’ package, which served my needs effectively. However, I have now migrated to a Linux server where I encountered compatibility issues with ‘puppeteer’ and Chromium, making it unusable.

I have also explored other npm packages, but unfortunately, they did not provide the exact HTML code output as displayed on the web. Given this situation, I am seeking your expert advice and support on which NodeJS package would be best suited for creating high-quality PDF invoices and documents from HTML.

I would greatly appreciate any recommendations or suggestions you may have based on your experience. If you could provide insights into packages that have proven to be reliable, efficient, and compatible with Linux servers, it would be immensely helpful.

I use html-pdf-node and puppeteer with chromium on CentOs and I works like a charm …

1 Like

This is one I have had my eye on for a future project, look very interesting to me.

How it will work within a nodejs app, I’m not sure yet. I don’t see why not.

You can look at the playground samples which make use of handlebars, you can use ejs etc. They are very nicely organised in my opinion.

But that’s pretty expensive :slight_smile:

Not really. The enterprise license is less than what we’re using a different tool for a similar purpose. I may have to do some prototyping to see the level of effort required and see if it’s economical to use it.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.