wkhtmltopdf wrapper to convert Html to PDF/Image
First you have to install wkhtmltopdf on application server (your developing system or client's systems)
Then simply install HtmlPi package from NuGet:
PM> Install-Package HtmlPi.dll
Or just add a reference to HtmlPI.dll
If you don't want to install wkhtmltopdf on application server or client's systems, you can use HtmlToPdfOrImage to convert html.
var converter = new HtmlConverter();
var filePath = converter.Convert(new GenerateSettings
{
HtmlFileContent = "<b>Bold Text</b><br /><br /><i>Italic Text</i>",
OutputType = OutputType.PDF
});
Customizing PDF is available, just Under Construction
Released under the MIT license.
Created by MohammadReza Daghestani, ADAK SYS Co.