Convert HTML to PDF in .NET

后端 未结 30 1824
不知归路
不知归路 2020-11-22 00:28

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

30条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-22 00:42

    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.

提交回复
热议问题