Quick Start

HTML to PDF is very easy to use --- simply provide the page Url or HTML markup and the converter will do the rest. The following code converts Google's home page into a PDF file:

//Convert a Url to PDF file
HtmlToPdf.ConvertUrl("http://www.google.com", "c:\\test.pdf");

The following code converts HTML markup into a PDF file:

//Convert HTML to PDF file
HtmlToPdf.ConvertHtml("<b>Hello!</b>", "c:\\test.pdf");

You can also output to a System.IO.Stream instead of a file. This is especially useful when using in a Web application.