Converting from html to pdf is not an easy task. There are some tools that can do that, but most of them cost thousands of dollars.

Select.Pdf offers a Community Edition (FREE) of the powerful Html To Pdf Converter for .NET that can be found in the full featured pdf library Select.Pdf for .NET. The free html to pdf converter offers most of the features the professional sdk offers, the most notable limitation is that it can only generate pdf documents up to 5 pages long.

The community edition contains ready to use samples, coded in C# and VB.NET for Windows Forms and ASP.NET. Select.Pdf Html To Pdf Converter for .NET works on any Windows OS and on Windows Azure.

SelectPdf Html To Pdf Converter provides versions for .NET Framework and .NET Core 2.0 and above (through .NET Standard 2.0). SelectPdf only works on Windows. SelectPdf works on Azure cloud, including Azure Web Apps (Basic plan or above) with some limitations.

Html to Pdf Converter For .NET - Community Edition Features

Building the Sample

The sample project attached presents most of the SelectPdf Html To Pdf Converter Features. A reference to the Select.Pdf Html To Pdf for .NET was a added as a NuGet Package. Alternatively, the free product can be downloaded from

SelectPdf Free Html To Pdf Converter is very easy to use. Below is a small sample code. A lot more can be found in the sample project attached.


// instantiate the html to pdf converter 
HtmlToPdf converter = new HtmlToPdf(); 
// convert the url to pdf 
PdfDocument doc = converter.ConvertUrl(url); 
// save pdf document 
// close pdf document 

ASP.NET MVC Sample available here:

ASP.NET Core MVC Sample available here:


This Community Edition of SelectPdf IS NOT THE FREE TRIAL for SelectPdf Commercial Library. This is a FREE product with limited functionality. If you want to try the full featured SelectPdf Library, download a free trial version from here:

The following features are not part of the free community edition. To use any of these features you need the full commercial SelectPdf Library for .NET:

- Create PDF documents with more than 5 pages.
- Convert only a certain section of the page, specified by the html element ID.
- Manually start the conversion to PDF from javascript.
- Specify a JS startup script that will run before the conversion.
- Hide parts of the web page during the html to pdf conversion.
- Load and modify existing PDF documents.
- Add additional HTML, text, images to PDF (using PdfHtmlElement, PdfTextElement, PdfImageElement objects).
- Get web elements location in PDF.
- Specify the open action of the PDF document (jump to page, run script).
- Custom headers and footers on specific PDF pages.
- Form fields filling.
- PDF portfolios management.
- Resize/scale content of existing PDF documents.
- Extract text from PDF (PDF to Text converter).
- Search for text in PDF.
- Convert PDF pages to images (PDF to Image converter).