EVO HTML to PDF Converter for .NET Overview

EVO HTML to PDF Library for .NET uses the Classic rendering engine to convert HTML to PDF, images, and SVG in applications targeting .NET Framework, .NET Core and .NET Standard 2.0 on Windows platforms.

The main functionality of the library is to convert HTML documents to PDF, but it offers much more than that. You can also convert HTML to raster images or SVG using the appropriate interfaces, and you can edit, merge, or split existing PDF documents.

The same EvoPdf API also runs on the Chromium-based rendering engine of EvoPdf Next, on Windows, Linux and macOS, in the platform packages EvoPdf.HtmlToPdf.Windows, EvoPdf.HtmlToPdf.Windows.Arm64, EvoPdf.HtmlToPdf.Linux, EvoPdf.HtmlToPdf.Linux.Arm64 and EvoPdf.HtmlToPdf.MacOS. An existing application keeps its code and changes only the package reference to the package of the platform it runs on. The Classic to Next migration guide describes what changes when an application moves to the EvoPdf Next API.

For applications that need to run on both Windows and Linux platforms, the EvoPdf.Next.HtmlToPdf package provides a newer and highly accurate rendering engine designed for modern HTML, CSS, and JavaScript content.

The full EvoPdf.Next package allows you to create, edit, and merge PDF documents, convert HTML to PDF or images, convert Word, Excel, RTF, and Markdown documents to PDF, and convert PDF documents to text or images.

It takes only a few lines of code to convert a web page from a given URL to a PDF document:

Code Sample - Minimal Code to Convert an HTML Document to PDF

C#
using EvoPdf;

HtmlToPdfConverter htmlToPdfConverter = new HtmlToPdfConverter();
byte[] outPdfBuffer = htmlToPdfConverter.ConvertUrl(url);

The resulting memory buffer can be saved to a file or, when the library is used in ASP.NET, it can be sent as a response to a browser.

See Also