SkillAgentSearch skills...

WkHtmlToXDotNet

A .NET wrapper for the "wkhtmltopdf" library

Install / Use

/learn @TimothyKhouri/WkHtmlToXDotNet
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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>");
View on GitHub
GitHub Stars24
CategoryDevelopment
Updated2y ago
Forks2

Languages

C#

Security Score

75/100

Audited on Aug 16, 2023

No findings