Convert HTML to PDF in .NET

后端 未结 30 1875
不知归路
不知归路 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:43

    If you don't really need a true .Net PDF library, there are numerous free HTML to PDF tools, many of which can run from a command-line.

    One solution would be to pick one of those and then write a thin wrapper around that in C#. E.g., as done in this tutorial.

提交回复
热议问题