SelectPdf 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 only notable limitation is that it can only generate pdf documents up to 5 pages long. 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.
FREE HTML TO PDF FOR .NET
- Convert any url or html file to pdf
- Convert any raw html code to pdf
- No external dependencies
- Powerful Javascript engine
- HTML5/CSS3 support
- Customizable headers and footers
BEST SAMPLES AND DOCUMENTATION
LIVE DEMO C#
LIVE DEMO VB.NET
ONLINE DOCUMENTATION
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.
VERY EASY TO USE
Converting from html to pdf with Select.Pdf is very easy. Take a look at the following code sample:
1 2 3 4 5 6 7 8 9 10 11 |
// instantiate the html to pdf converter HtmlToPdf converter = new HtmlToPdf(); // convert the url to pdf PdfDocument doc = converter.ConvertUrl(url); // save pdf document doc.Save(file); // close pdf document doc.Close(); |
Html to Pdf Converter For .NET – Community Edition Features
- Generate pdf documents up to 5 pages
- Convert any web page to pdf
- Convert any raw html string to pdf
- Set pdf page settings (page size, page orientation, page margins)
- Resize content during conversion to fit the pdf page
- Set pdf document properties
- Set pdf viewer preferences
- Set pdf security (passwords, permissions)
- Set conversion delay and web page navigation timeout
- Custom headers and footers
- Support for html in headers and footers
- Automatic and manual page breaks
- Repeat html table headers on each page
- Support for @media types screen and print
- Support for internal and external links
- Generate bookmarks automatically based on html elements
- Support for HTTP headers
- Support for HTTP cookies
- Support for web pages that require authentication
- Support for proxy servers
- Enable/disable javascript
- Modify color space
- Multithreading support
- HTML5/CSS3 support
- Web fonts support