Convert from Html To Pdf in ASP.NET MVC (C# and VB.NET)

html to pdf mvc asp 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 in ASP.NET MVC (ASPX or Razor views) without installing Adobe Acrobat.


Many rich features can be supported by the .NET PDF SDK, such as security setting (including digital signatures), PDF merge/split, text, html and image drawing into PDF and many more. Besides, SelectPdf for .NET component can be used to easily convert HTML to PDF with C#/VB.NET in high quality.

It’s very easy to use SelectPdf SDK for .NET in ASP.NET MVC applications. Take a look at the simple code below.

Convert from HTML to PDF in ASP.NET MVC C# Sample Code

Convert from HTML to PDF in ASP.NET MVC VB.NET Sample Code

The code above works the same for both commercial SelectPdf Library and also for the Free Html To Pdf Converter – Community Edition.