Convert HTML to PDF in .NET

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

    2018's update, and Let's use standard HTML+CSS=PDF equation!

    There are good news for HTML-to-PDF demands. As this answer showed, the W3C standard css-break-3 will solve the problem... It is a Candidate Recommendation with plan to turn into definitive Recommendation in 2017 or 2018, after tests.

    As not-so-standard there are solutions, with plugins for C#, as showed by print-css.rocks.

提交回复
热议问题