Converting from html to pdf in .NET is not an easy task. Web pages can be very complex and the pdf format is not easy to understand. There are some tools that can do that, but most of them cost thousands of dollars. SelectPdf decided to help the developers community and released SelectPdf Html To Pdf Converter for .NET – Community Edition.
SelectPdf Html To Pdf Converter for .NET Community Edition is a free subset of Select.Pdf for .NET, a powerful pdf library for .NET. The free html to pdf converter contains most of the features SelectPdf library offers, the only notable limitation being the possibility to generate pdf documents up to 5 pages only.
Select.Pdf Library for .NET can be downloaded as a NuGet package from the following page:
Allow your visitors to save/export your webpages as pdf. With Select.Pdf is very simple. Just add a link on your page and you are done.
<a href="http://selectpdf.com/save-as-pdf/">Save as Pdf</a>
For more details and parameters description, take a look at Save as Pdf feature main page.
It’s very easy to use Select.Pdf SDK for .NET. Take a look at the simple code below.
SelectPdf.PdfDocument doc = new SelectPdf.PdfDocument();
SelectPdf.PdfPage page = doc.AddPage();
SelectPdf.PdfFont font = doc.AddFont(SelectPdf.PdfStandardFont.Helvetica);
font.Size = 20;
SelectPdf.PdfTextElement text = new SelectPdf.PdfTextElement(50, 50, "Hello world!", font);