Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 465 Bytes

README.md

File metadata and controls

24 lines (14 loc) · 465 Bytes

PugPDF

A WkHtmlToPdf .net core wrapper.

It includes all binaries to run wkhtmltopdf, no external dependencies.

NuGet

To get started you can download the prebuilt NuGet package.

Usage

var renderer = new HtmlToPdf();

renderer.PrintOptions.Title = "My title";

var pdf = await renderer.RenderHtmlAsPdfAsync("<h1>Hello world</h1>");

pdf.SaveAs("c:\\my.pdf");

// Or

var byteArray = pdf.BinaryData;