This sample shows how to convert an HTML string or a file to PDF in C# or VB.NET application.
The Convert HTML string to PDF in C# section contains additional information.
The HTML converter class provides methods that accept a file name or a string with some HTML code. You can use them to convert some auto-generated local HTML or content uploaded by users. It is also possible to specify a base URL.
This sample code uses free Docotic.Pdf.HtmlToPdf add-on for Docotic.Pdf library.