Comparison

A wkhtmltopdf alternative for .NET

ExpertPdf is a .NET HTML to PDF library you call directly from C#, VB.NET, ASP.NET, ASP.NET MVC and ASP.NET Core code. .NET developers use it in place of wkhtmltopdf when they want a maintained, supported component instead of an external command-line tool.

Why look for a wkhtmltopdf alternative?

wkhtmltopdf is a free, open-source command-line tool that renders HTML to PDF with an older, patched QtWebKit engine. Its source repository was archived in January 2023 and the project is no longer maintained, so it no longer receives bug fixes or security updates. To use it from .NET you also have to run its executable, or rely on a third-party wrapper, instead of calling a .NET API.

ExpertPdf and wkhtmltopdf compared

ExpertPdf wkhtmltopdf
Type .NET library Command-line executable
Platforms Windows; Windows, Linux and macOS with ExpertPdf Anywhere Windows, Linux and macOS
.NET integration Direct API in C#, VB.NET, ASP.NET, ASP.NET MVC and ASP.NET Core Run the executable, or use a third-party wrapper
.NET support .NET Framework, and .NET Core / .NET 5 to .NET 11 through .NET Standard 2.0 No .NET API of its own
Rendering engines Internal WebKit engine, plus the Blink and Chromium engines Older, patched QtWebKit
Maintained Yes, v22.0.0 released November 20, 2026 No, the repository was archived in January 2023
Security updates Yes No
Support Email support None
License Commercial, from $550 Open source (LGPLv3), free

Migrating from wkhtmltopdf

Replace the command-line call with a few lines of code. Page size, orientation, margins, headers and footers are converter properties; page breaks follow your CSS.

Before and after · C#
// Before: run wkhtmltopdf and wait for the file
// Process.Start("wkhtmltopdf", "--page-size A4 https://www.example.com/ page.pdf");

// After: call the library
using ExpertPdf.HtmlToPdf;

var converter = new PdfConverter();
converter.PdfDocumentOptions.PdfPageSize = PdfPageSize.A4;
byte[] pdf = converter.GetPdfBytesFromUrl("https://www.example.com/");

Moving from wkhtmltopdf: questions

Is wkhtmltopdf still maintained?
No. Its source repository was archived in January 2023, so it no longer receives bug fixes or security updates.
How hard is it to move from wkhtmltopdf to ExpertPdf?
You replace the command-line call with a few lines of C# or VB.NET: create a PdfConverter, set the page options and call GetPdfBytesFromUrl or GetPdfBytesFromHtmlString. Headers, footers and page breaks are set with properties and CSS.
Do I need to deploy an executable?
No. ExpertPdf is a .NET assembly referenced by your project, installed from NuGet or the evaluation download.
Can I try it with my own HTML first?
Yes. The evaluation is fully functional and has no time limit. You can also paste your HTML into the free online converter.

Replace wkhtmltopdf with a .NET library.

Download the free evaluation with C# and VB.NET samples for ASP.NET, ASP.NET MVC, ASP.NET Core and Windows Forms.

Targets.NET Framework · .NET Core · .NET 5 to 11
Versionv22.0.0 · November 20, 2026