5 ms·
Despite have a deprecated dependency, is there any issue using wkhtmltopdf? I'm running it in quite a few projects to generate letters and invoices, and not exp
by blowski 6y ago
Despite have a deprecated dependency, is there any issue using wkhtmltopdf? I'm running it in quite a few projects to generate letters and invoices, and not experiencing any issues.
- ognarb 6y agoif it works for you and you control the html/css/js that is rendered, I don't think there is any problem.
- daniellarusso 6y agoI have run into issues where it would incorrectly render svg tags.
- blowski 6y agoThat's interesting - have you got any more detail on that?
- daniellarusso 6y agoYes, so there was a page of a report that showed a ‘top-view’ illustration of an item, and this svg would indicate where along the exterior of this item had damage, and where it has no damage. So, it would become fairly inaccurate using wkhtmltopdf. It would look like either the entire item had no issues, or it had sustained damage everywhere.
- blowski 6y agoThanks, that's good to know.
- fvdessen 6y agoWe were generating hundred of thousands of pdfs per day with wkhtmltopdf and had a lot of reliability issues. We switched to prince, and it has proven much better on all levels; no more crashes, better layout, smaller pdfs, faster generation, etc.
- bckr 6y agoCan you share any more about why you would need to generate so many PDFs from HTML?
- CodesInChaos 6y agoWe generate invoice PDFs from templated html using wkhtmltopdf. For B2C applications hitting millions of invoices per month is quite possible. There are reliability problems with wkhtmltopdf, but it's possible to make it reasonably reliable with enough error detection and retrying.
- bckr 6y agoThanks, that makes sense now.