4 ms·
In our project we use Chromium with puppeteer. The thing is good because it saves our time. Our project generates invoices PDFs. It's written in React so we can
by gitowiec 6y ago
In our project we use Chromium with puppeteer. The thing is good because it saves our time. Our project generates invoices PDFs. It's written in React so we can send invoice view component directly to PDF printer made of Chromium and puppeteer. Another pro is that puppeteer has a side project "swarm" and which makes it easy to scale when demand is high.
- jhoh 6y agoAfter trying many HTML2PDF libraries we're doing the same thing and are quite happy with this approach. I've tried using "professional" solutions like iText pdfHTML[0]. They all seem to be based on flyingsaucer[1] which only supports HTML4 and CSS2, and will fail rendering pages that use modern CSS let alone JavaScript. [0]: https://itextpdf.com/en/products/itext-7/convert-html-css-to-pdf-pdfhtml https://itextpdf.com/en/products/itext-7/convert-html-css-to... [1]: https://github.com/flyingsaucerproject/flyingsaucer https://github.com/flyingsaucerproject/flyingsaucer