Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.2 KB

README.md

File metadata and controls

42 lines (26 loc) · 1.2 KB

HtmlPI

wkhtmltopdf wrapper to convert Html to PDF/Image

Installation

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.

Usage

var converter = new HtmlConverter();
var filePath = converter.Convert(new GenerateSettings
                                  {
                                     HtmlFileContent = "<b>Bold Text</b><br /><br /><i>Italic Text</i>",
                                     OutputType = OutputType.PDF
                                  });

Options

Customizing PDF is available, just Under Construction

Demo

Demo Website

License

Released under the MIT license.

Created by MohammadReza Daghestani, ADAK SYS Co.