Skip to content
C# wrapper around excellent wkhtmltopdf console utility.
C# Batchfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
NuGet Removed validation, retained default. Added changes to actual code, n… Sep 25, 2017
Tests/Codaxy.WkHtmlToPdf.Tests Removed validation, retained default. Added changes to actual code, n… Sep 25, 2017
.gitignore
Codaxy.WkHtmlToPdf.sln
README.md

README.md

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.

You can’t perform that action at this time.