Skip to content

Latest commit

 

History

History
30 lines (27 loc) · 641 Bytes

README.md

File metadata and controls

30 lines (27 loc) · 641 Bytes

Codaxy.WkHtmlToPdf

This is a small C# wrapper utility around wkhtmltopdf console tool. You can use it to easily convert HTML reports to PDF.

NuGet

NuGet includes single source file in your project.

Install-Package Codaxy.WkHtmlToPdf

Usage

PdfConvert.ConvertHtmlToPdf(new PdfDocument 
{ 
    Url = "http://wkhtmltopdf.org/",
    HeaderLeft = "[title]",
    HeaderRight = "[date] [time]",
    FooterCenter = "Page [page] of [topage]"

}, new PdfOutput 
{
    OutputFilePath = "wkhtmltopdf-page.pdf"
});

Licence

This project is available under MIT Licence.