This sample uses EO.Pdf for .NET to convert any HTML file to PDF.
Sample code to convert HTML file to PDF (many advanced features not shown here):
//Code to convert a HTML file to PDF. The following code writes output to a
//file. You can also write output to a Stream, a PdfPage, or a PdfDocument object
Detailed documentation and sample code about this feature can be found in the