SelectPdf Blog

Release notes, framework tutorials, and how-to posts on HTML to PDF conversion with the SelectPdf .NET Library and Online API.

selectpdf HTML to PDF Converter Online

Add a “Save as PDF” button to your website

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="https://selectpdf.com/export-to-pdf/?" onclick="if(!this.urlAdded)href+=&apos;&url=&apos;+encodeURIComponent(location.href);this.urlAdded=1">Save as Pdf</a>   For more details and parameters description, take a look at Save as Pdf feature main page.

selectpdf PDF LIBRARY for .NET, HTML to PDF Library

‘Hello World’ from SelectPdf

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); page.Add(text); doc.Save("test.pdf"); doc.Close();