Generate PDF from HTML Documents using C#

Generate PDF from HTML Documents using C#
1. Install Package :
Install-package NReco.PdfGenerator

2.Write Down Code as follow :

var htmlToPdf = new HtmlToPdfConverter();
var pdfbytes = htmlToPdf.GeneratePdfFromFile("", null);
File.WriteAllBytes("", pdfbytes);

Comments

Popular posts from this blog

Create Short URL using C#