Welcome to SelectPdf Library for .NET |
SelectPdf for .NET is a professional PDF library that can be used for creating, writing, editing, handling and reading PDF files without any external dependencies within .NET applications. Using this .NET PDF library, you can implement rich capabilities to create PDF files from scratch or process existing PDF documents entirely through C#/VB.NET without installing Adobe Acrobat.
Many rich features can be supported by SelectPdf for .NET PDF API, such as security setting (including digital signatures), PDF merge/split, text, html and image drawing into pdf, PDF form fields filling, PDF portfolios and many more. SelectPdf for .NET can be used to easily convert HTML to PDF with C#/VB.NET in high quality. SelectPdf can also extract text from existing PDF documents or search for text in PDF documents and can convert PDF pages to raster images (PNG, BMP, JPEG, TIFF).
SelectPdf provides versions for .NET Framework, .NET Core (2.0 and above) and .NET 5 (through .NET Standard 2.0). SelectPdf works on Azure cloud, including Azure Web Apps (Basic plan or above) with some limitations. More details here: Deployment to Microsoft Azure.
Note: SelectPdf currently works only on Windows systems. There is no support for Linux, Xamarin or other platforms.
Coding with SelectPdf is very easy. Take a look at the section below:
// create a new pdf document PdfDocument doc = new PdfDocument(); // add a new page to the document PdfPage page = doc.AddPage(); // create a new pdf font PdfFont font = doc.AddFont(PdfStandardFont.Helvetica); font.Size = 20; // create a new text element and add it to the page PdfTextElement text = new PdfTextElement(50, 50, "Hello world!", font); page.Add(text); // save pdf document doc.Save(file); // close pdf document doc.Close();
Converting from html to pdf using SelectPdf Library for .NET is just as easy: