Skip to content

TimothyKhouri/WkHtmlToXDotNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WkHtmlToXDotNet

If you've seen the great "WkHtmlToPdf" tool (http://wkhtmltopdf.org/), but wanted to use it in your .NET (C# or VB) application, you've come to the right place. Simply include this .NET DLL in your .NET project, make sure the "wkhtmltox.dll" file is in your bin directory (because it's a dependancy), and voila! You will be able to use the following methods:

  • HtmlToXConverter.ConvertToPdf
  • HtmlToXConverter.ConvertToPng

This is what your code will look like:

byte[] pdfData = HtmlToXConverter.ConvertToPdf("<h1>SOO COOL!</h1>");

About

A .NET wrapper for the "wkhtmltopdf" library

Resources

License

Stars

Watchers

Forks

Packages

No packages published