chenguanzhou / WkHtmlToXDotNet

A .NET wrapper for the "wkhtmltopdf" library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.ConvertToImage

This is what your code will look like:

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

byte[] imageData = HtmlToXConverter.ConvertToImage("<h1>SOO COOL!</h1>", "jpg", 500, 0);

About

A .NET wrapper for the "wkhtmltopdf" library

License:MIT License


Languages

Language:C# 34.9%Language:C 34.2%Language:C++ 30.0%Language:Objective-C 0.8%