Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML to PDF in ASP.NET [closed]

In an ASP.NET project I need to generate a PDF for the user to download which is made from HTML. That HTML has img's in it too, which need to be embedded. It would also be great if links are clickable.

Now i've tried a whole range of different product demo's, and they all either don't work, are classic ASP, or are horridly expensive.

This is for a commercial application.

The most promising (although expensive) looked like http://www.websupergoo.com/abcpdf-1.htm but the example code from HTML to PDF (found here: http://www.websupergoo.com/helppdf8net/source/5-abcpdf6/doc/1-methods/addimagetochain.htm)crashes IIS, on every page I try, with a very generic error message.

Please can someone suggest a product for this. I can't run an CMD line app on the server unfortunately, so it does have to be just a dll that I stick in.

like image 778
Matt Avatar asked Apr 04 '11 12:04

Matt


1 Answers

My colleague found Evo PDF, http://www.evopdf.com/. We've used it successfully to generate PDFs from HTML, with images, clickable links, and a multitude of other features. I think that it uses the Webkit rendering engine. It's a .NET library that sits on your server. Very easy to use and excellent reproduction.

like image 60
Shan Plourde Avatar answered Oct 21 '22 21:10

Shan Plourde