Skip to content

wkhtmltopdf wrapper to convert Html to PDF/Image

Notifications You must be signed in to change notification settings

mrdaghestani/HtmlPI

Repository files navigation

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.

About

wkhtmltopdf wrapper to convert Html to PDF/Image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages