Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML to PDF Converters for .NET [closed]

I am in search of a FREE HTML to PDF converter for .NET which preferably takes an HTML page and renders it into a PDF document.

The HTML page (when printed) will most often be more than one page. I know of ABCPDF, but from a quick overview, it appears it just wants to convert a single page of HTML and doesn't handle multiple pages well. I could be ignorant of its capabilities as I haven't put very much research into ABCPDF yet. The only other one I have gently used is iText, but that seems like it may become very complicated for the application I need.

Please let me know if you have any recommendations. If you know of one that does cost per license, but does exactly what I need, let me know.

Thanks!

like image 562
BueKoW Avatar asked Apr 01 '11 13:04

BueKoW


2 Answers

EDIT: ABCPDF no longer offers a free option unless you can satisfy their requirements of either being a Worthy Cause or a Worthy Individual. More details here: http://www.websupergoo.com/free-license.htm

ABCPDF will handle multiple pages, as stated in this link - "You can even have HTML flowed between multiple columns over multiple PDF pages."

I've used it extensively and found it to be pretty good.

Either that or iTextSharp if you're after open source options.

If you've got some money to spend, then have a look at Aspose.PDF.

like image 184
Town Avatar answered Sep 30 '22 15:09

Town


Just implemented something similar in one of my projects using wkhtmltopdf (webkit based) I'm rendering views or partial views to strings, writing them to temp html file and sending starting the exe in a new System.Diagnostics process..

The pdf's look absolutely awesome, it works with external css sheets and everything.

like image 44
Michiel Cornille Avatar answered Sep 30 '22 16:09

Michiel Cornille