PDA

View Full Version : HTML to PDF


robrich
09-02-2009, 01:16 PM
IIS 6 accounts support HTML to PDF via ABCpdf.NET ( http://support.discountasp.net/KB/a124/websupergoo-abcpdfnet-sample-code.aspx ), but apparently this is not built-in for IIS 7 hosting ( http://support.discountasp.net/KB/a395/list-of-supported-and-deprecated-components-in-iis-7.aspx ), and the "from url" feature was disabled anyway -- which is really the killer feature.

Do you have any recommendations of html-to-pdf libraries that would run in Medium Trust and/or Full Trust on DiscountASP.NET's IIS 7 hosting? Has anyone purchased ABCpdf.NET for use in IIS 7 hosting?

bruce
09-03-2009, 10:26 AM
I doubt that this will work because abcpdf uses the IE object to render a web page before converting to PDF. The problem is we do not want to allow access to IE objects because of the large number of hacks targeting it.

CrystalCMS
09-06-2009, 10:24 AM
Right now ExpertPdf looks pretty good because it has succeeded where similar tools and libraries have failed in some way when creating pdfs for my ASP.NET web pages: http://www.html-to-pdf.net/Features.aspx

It has certainly done a better job than the one I tested here (http://community.discountasp.net/showthread.php?t=8186) and ExpertPdf does have more features e.g. JavaScript support.

I'm not sure about the medium / full trust requirements but there is a free trial download available, so I'd say it's worth testing on DASP to see if it works for you.