EvoPdf.HtmlToPdf
15.0.0
Prefix Reserved
dotnet add package EvoPdf.HtmlToPdf --version 15.0.0
NuGet\Install-Package EvoPdf.HtmlToPdf -Version 15.0.0
<PackageReference Include="EvoPdf.HtmlToPdf" Version="15.0.0" />
<PackageVersion Include="EvoPdf.HtmlToPdf" Version="15.0.0" />
<PackageReference Include="EvoPdf.HtmlToPdf" />
paket add EvoPdf.HtmlToPdf --version 15.0.0
#r "nuget: EvoPdf.HtmlToPdf, 15.0.0"
#:package EvoPdf.HtmlToPdf@15.0.0
#addin nuget:?package=EvoPdf.HtmlToPdf&version=15.0.0
#tool nuget:?package=EvoPdf.HtmlToPdf&version=15.0.0
EVO HTML to PDF Library for .NET (Classic)
HTML to PDF for .NET | PDF Library for .NET and C# | Free Trial | Licensing | Support
Overview
EVO HTML to PDF Library for .NET (Classic) can be used in .NET Framework, .NET Core and .NET Standard applications on Windows to convert HTML to PDF, images and SVG.
The library can also be used to create new PDF documents, to edit, merge, split and fill existing PDF documents.
This package is compatible with .NET Framework, .NET Core and .NET Standard 2.0 on Windows platforms.
EvoPdf Next for Windows, Linux and macOS
For applications that run on Windows, Linux or macOS, EvoPdf Next for .NET offers a newer, highly accurate Chromium-based rendering engine designed for modern HTML, CSS and JavaScript content.
EvoPdf Next targets .NET Standard 2.0 and can be used in .NET Core and .NET Framework applications deployed on Windows, Linux and macOS, including Azure, AWS, Google Cloud, Docker and Kubernetes.
Each platform has its own NuGet package. The multi-platform packages install the Windows x64 and Linux x64 runtimes. The platform packages can be referenced on their own or alongside them.
HTML to PDF Converter packages
EvoPdf.Next.HtmlToPdf (Multi-platform)
https://www.nuget.org/packages/EvoPdf.Next.HtmlToPdfEvoPdf.Next.HtmlToPdf.Windows (Windows x64)
https://www.nuget.org/packages/EvoPdf.Next.HtmlToPdf.WindowsEvoPdf.Next.HtmlToPdf.Windows.Arm64 (Windows ARM64)
https://www.nuget.org/packages/EvoPdf.Next.HtmlToPdf.Windows.Arm64EvoPdf.Next.HtmlToPdf.Linux (Linux x64)
https://www.nuget.org/packages/EvoPdf.Next.HtmlToPdf.LinuxEvoPdf.Next.HtmlToPdf.Linux.Arm64 (Linux ARM64)
https://www.nuget.org/packages/EvoPdf.Next.HtmlToPdf.Linux.Arm64EvoPdf.Next.HtmlToPdf.MacOS (macOS ARM64)
https://www.nuget.org/packages/EvoPdf.Next.HtmlToPdf.MacOS
Full library packages
The full library can also create, edit and merge PDF documents, convert Word, Excel, RTF and Markdown to PDF, extract text and images from PDFs, search text in PDFs and convert PDF pages to images.
EvoPdf.Next (Multi-platform)
https://www.nuget.org/packages/EvoPdf.NextEvoPdf.Next.Windows (Windows x64)
https://www.nuget.org/packages/EvoPdf.Next.WindowsEvoPdf.Next.Windows.Arm64 (Windows ARM64)
https://www.nuget.org/packages/EvoPdf.Next.Windows.Arm64EvoPdf.Next.Linux (Linux x64)
https://www.nuget.org/packages/EvoPdf.Next.LinuxEvoPdf.Next.Linux.Arm64 (Linux ARM64)
https://www.nuget.org/packages/EvoPdf.Next.Linux.Arm64EvoPdf.Next.MacOS (macOS ARM64)
https://www.nuget.org/packages/EvoPdf.Next.MacOS
Migrating from Classic to Next
The Classic to Next migration guide on the EVO PDF website describes what changes when an HTML to PDF integration moves to EvoPdf Next: the packages, the namespace and the license key, the page sizing model and the headers and footers described as HTML. The guide also maps the Classic options to their Next equivalents.
The EvoPdf.Next.Compat.Classic package runs the code written for the Classic library on the Next platform. It keeps the EvoPdf namespace and the Classic classes, so an existing application can move to Next with few source code changes and then adopt the native Next API gradually.
Main Features
- Create PDF documents from HTML with advanced support for CSS3, SVG, Web Fonts and JavaScript
- Automatically create PDF links, forms, bookmarks and table of contents from HTML tags
- Place the content from multiple HTML documents at any position in PDF pages, headers or footers
- Create JPEG, PNG and Bitmap raster images from HTML documents
- Create high-quality SVG vector images from HTML documents
- Create PDF documents with text, graphics, images, headers and footers
- Create PDF documents with security features and digital signatures
- Create interactive PDF documents with forms, internal links, text notes and JavaScript actions
- Edit, stamp, merge and split PDF documents
Compatibility
The compatibility list includes the following .NET versions, platforms and application types:
- .NET Framework 4.0 and above
- .NET 10, 9, 8, 7, 6
- .NET Standard 2.0
- Windows platforms
- Azure Cloud Services and Azure Virtual Machines
- Web, Console and Desktop applications
Installation
Install the package using your preferred NuGet package manager or with the .NET CLI:
dotnet add package EvoPdf.HtmlToPdf
In .NET Framework projects that use packages.config, the package can be installed from the Package Manager Console:
Install-Package EvoPdf.HtmlToPdf
The package references the evohtmltopdf.dll assembly in .NET Framework projects and the EvoHtmlToPdf_NetCore.dll assembly in .NET Core projects. The evointernal.dat file of the library is copied automatically next to the assembly in the output folder of the application, is included when the application is published and must be deployed together with the assembly.
Getting Started
After adding a reference to the library to your project, you are ready to start writing code to convert HTML to PDF in your .NET application. You can copy the C# code lines from the sections below to create a PDF document from a web page or from an HTML string and save the resulting PDF to a memory buffer for further processing, to a PDF file or to send it to the browser in ASP.NET applications.
C# Code Samples
At the top of your C# source file add the using EvoPdf; statement to make available the EVO HTML to PDF API for your .NET application.
using EvoPdf;
To convert an HTML string or a URL to a PDF file you can use the C# code below.
// create the converter object in your code where you want to run conversion
HtmlToPdfConverter converter = new HtmlToPdfConverter();
// convert the HTML string to a PDF file
converter.ConvertHtmlToFile("<b>Hello World</b> from EVO PDF !", null, "HtmlToFile.pdf");
// convert HTML page from URL to a PDF file
string htmlPageURL = "https://www.evopdf.com";
converter.ConvertUrlToFile(htmlPageURL, "UrlToFile.pdf");
To convert an HTML string or a URL to a PDF document in a memory buffer and then save it to a file you can use the C# code below.
// create the converter object in your code where you want to run conversion
HtmlToPdfConverter converter = new HtmlToPdfConverter();
// convert an HTML string to a memory buffer
byte[] htmlToPdfBuffer = converter.ConvertHtml("<b>Hello World</b> from EVO PDF !", null);
// write the memory buffer to a PDF file
System.IO.File.WriteAllBytes("HtmlToMemory.pdf", htmlToPdfBuffer);
// convert a URL to a memory buffer
string htmlPageURL = "https://www.evopdf.com";
byte[] urlToPdfBuffer = converter.ConvertUrl(htmlPageURL);
// write the memory buffer to a PDF file
System.IO.File.WriteAllBytes("UrlToMemory.pdf", urlToPdfBuffer);
To convert in your ASP.NET MVC application for .NET Framework an HTML string or a URL to a PDF document in a memory buffer and then send it for download to the browser you can use the C# code below.
// create the converter object in your code where you want to run conversion
HtmlToPdfConverter converter = new HtmlToPdfConverter();
// convert an HTML string to a memory buffer
byte[] htmlToPdfBuffer = converter.ConvertHtml("<b>Hello World</b> from EVO PDF !", null);
FileResult fileResult = new FileContentResult(htmlToPdfBuffer, "application/pdf");
fileResult.FileDownloadName = "HtmlToPdf.pdf";
return fileResult;
To convert in your ASP.NET Web Forms application for .NET Framework an HTML string to a PDF document in a memory buffer and then send it for download to the browser you can use the C# code below.
// create the converter object in your code where you want to run conversion
HtmlToPdfConverter converter = new HtmlToPdfConverter();
// convert an HTML string to a memory buffer
byte[] htmlToPdfBuffer = converter.ConvertHtml("<b>Hello World</b> from EVO PDF !", null);
HttpResponse httpResponse = HttpContext.Current.Response;
httpResponse.AddHeader("Content-Type", "application/pdf");
httpResponse.AddHeader("Content-Disposition",
String.Format("attachment; filename=HtmlToPdf.pdf; size={0}",
htmlToPdfBuffer.Length.ToString()));
httpResponse.BinaryWrite(htmlToPdfBuffer);
httpResponse.End();
To convert in your ASP.NET Core application an HTML string or a URL to a PDF document in a memory buffer and then send it for download to the browser you can use the C# code below.
// create the converter object in your code where you want to run conversion
HtmlToPdfConverter converter = new HtmlToPdfConverter();
// convert an HTML string to a memory buffer
byte[] htmlToPdfBuffer = converter.ConvertHtml("<b>Hello World</b> from EVO PDF !", null);
FileResult fileResult = new FileContentResult(htmlToPdfBuffer, "application/pdf");
fileResult.FileDownloadName = "HtmlToPdf.pdf";
return fileResult;
Free Trial
You can download the EVO HTML to PDF Converter for .NET evaluation package from EVO PDF Downloads page of the website.
The evaluation package for .NET contains the product binaries and demo web, desktop and console projects with full C# code for .NET Framework and .NET Core.
You can evaluate the library for free as long as it is needed to ensure that the solution fits your application needs.
Licensing
The EVO PDF Software licenses are perpetual which means they never expire for a version of the product and include free maintenance for the first year. You can find more details about licensing on the website.
Set the license key on the converter object before the conversion:
converter.LicenseKey = "your-license-key";
Without a license key the converter runs in evaluation mode and a demo watermark is displayed in the generated PDF documents.
Support
For technical and sales questions or for general inquiries about our software and company you can contact us using the email addresses from the contact page of the website.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net40 is compatible. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.0
- No dependencies.
-
.NETFramework 4.6.1
- No dependencies.
-
.NETStandard 2.0
- System.Drawing.Common (>= 5.0.3)
- System.Security.Principal.Windows (>= 5.0.0)
- System.Text.Encoding.CodePages (>= 5.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on EvoPdf.HtmlToPdf:
| Package | Downloads |
|---|---|
|
EvoPdf
EVO PDF Library for .NET (Classic) can be used in .NET Framework, .NET Core and .NET Standard applications on Windows to convert HTML to PDF, images and SVG, create and edit PDF documents. It can also merge, split, stamp, secure and fill existing PDF documents. This metapackage references the EvoPdf.HtmlToPdf package. For Windows, Linux and macOS, on x64 and ARM64, EvoPdf Next offers a newer Chromium-based rendering engine for modern HTML, CSS and JavaScript in the multi-platform package EvoPdf.Next.HtmlToPdf and in the platform packages EvoPdf.Next.HtmlToPdf.Windows, EvoPdf.Next.HtmlToPdf.Windows.Arm64, EvoPdf.Next.HtmlToPdf.Linux, EvoPdf.Next.HtmlToPdf.Linux.Arm64 and EvoPdf.Next.HtmlToPdf.MacOS. The full EvoPdf Next library, which also converts Word, Excel, RTF and Markdown to PDF, comes in the EvoPdf.Next, EvoPdf.Next.Windows, EvoPdf.Next.Windows.Arm64, EvoPdf.Next.Linux, EvoPdf.Next.Linux.Arm64 and EvoPdf.Next.MacOS packages. Migration guide from Classic to Next: https://www.evopdf.com/evopdf-classic-to-next-migration The EvoPdf.Next.Compat.Classic package runs code written for the Classic library on the Next platform, with the same EvoPdf namespace and classes. Compatibility: * .NET Framework 4.0 and above * .NET 10, 9, 8, 7, 6 and .NET Standard 2.0 * Windows platforms * Azure Cloud Services and Azure Virtual Machines * Web, Console and Desktop applications Main Features: * Convert HTML with CSS3, SVG, web fonts and JavaScript to PDF * Create PDF links, forms, bookmarks and table of contents from HTML * Place HTML content in PDF pages, headers and footers * Convert HTML to JPEG, PNG and SVG images * Create PDF documents with text, graphics and images * Set PDF security and digital signatures * Edit, stamp, merge and split PDF documents |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 15.0.0 | 439 | 10/21/2026 |
