Convert HTML to PDF in .NET


I want to generate a PDF by passing HTML contents to a function. I have made use of iTextSharp for this but it does not perform well when it encounters tables and the layout just gets messy.

Is there a better way?

12/9/2015 4:10:48 PM

Update: I would now recommend PupeteerSharp over wkhtmltopdf.

Try wkhtmtopdf. It is the best tool I have found so far.

For .NET, you may use this small library to easily invoke wkhtmtopdf command line utility.

7/29/2019 9:51:15 AM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow