Skip to content

eangelin/pugpdf

 
 

Repository files navigation

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;

About

WkHtmlToPdf .net core wrapper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%