Convert HTML to PDF in ASP.NET [duplicate]
Possible Duplicate:
开发者_StackOverflow Convert HTML to PDF in .NET
How can i use the acrobat driver to covert web page to pdf , i have a icon on my browser. How can i use that in ASP.NET to convert the web page to pdf pro grammatically.
For that you will need a server side library. PDFSharp is a good one that is free. They have a lot of samples.
Depending on the complexity of your web page, this free library may be your choice.
To parse html, you can use HtmlWorker
. It has some weaknesses, though, e.g. how the styles are used. I'm working on a library based on iTextSharp but independent from HTMLWorker which would have better CSS support, but it's not finished yet.
iTextSharp
精彩评论