3 ms·
Oh man, .NET needed this. Did some PDF work for a .NET project last year and found the ecosystem to be somewhat light on PDF support. There's a few commercial o
by space_ghost 4y ago
Oh man, .NET needed this. Did some PDF work for a .NET project last year and found the ecosystem to be somewhat light on PDF support. There's a few commercial options, but they're pricey.
- yyyk 4y agoThe various wkhtmltopdf wrappers (there are many for .NET) work, but note wkhtmltopdf itself (based on Qt 4/5) is abandoned and the general response for issues was always 'just hack the HTML until it sorta works'.
- pathartl 4y agoWe've been on iTextSharp 5 for a decade for this reason.
- ejb999 4y agoI've used this one with great success (and its free): https://github.com/tuespetre/TuesPechkin https://github.com/tuespetre/TuesPechkin its basically a wrapper for wkhtmltopdf but I develop an app that has probably generated a million +/- invoices/statements over the past 5 years with it, and its been rock solid for me. Was a bit of a bear to get it working the first time (not a ton of documentation that I could find at the time), but once working, was easy to add/change new documents/layouts. As it uses wkhtmltopdf under to covers, it is a HTML->PDF tool, but I prefer that, at least for my use case. Not sure there is a dotnet-core version, so that might be a problem for some.
- hbcondo714 4y agoI've been using Rotativa[1] for URL to PDF generation which is also a wrapper for wkhtmltopdf. They have a dotnet-core[2] version and also a SaaS[3] but it's worth mentioning that Azure PaaS supports wkhtmltopdf[4] so I just self-host. Looking at QuestPDF's API docs, it doesn't look like they support URL / HTML to PDF generation. I think this would be a great addition especially given the age and issues with Rotativa and TuesPechkin on their public repos. [1] https://github.com/webgio/Rotativa https://github.com/webgio/Rotativa [2] https://github.com/webgio/Rotativa.AspNetCore https://github.com/webgio/Rotativa.AspNetCore [3] https://rotativa.io/ https://rotativa.io/ [4] https://github.com/projectkudu/kudu/wiki/Azure-Web-App-sandbox#unsupported-frameworks https://github.com/projectkudu/kudu/wiki/Azure-Web-App-sandb...
- dukeofharen 4y agoWe've been using [Gotenberg](https://gotenberg.dev/ https://gotenberg.dev/) since a few years and so far works really nice.
- majkinetor 4y agoCan you say more about your typical setup?
- sixtram 4y agoWe're using Puppeteer with Chrome. It's easy to test, as basically it runs Chrome's Print to PDF. Difficult to work with headers and footers and page breaks can be tricky, but it could work for a lot of layouts.