![]() |
VOOZH | about |
dotnet add package EvoPdf --version 14.0.2
NuGet\Install-Package EvoPdf -Version 14.0.2
<PackageReference Include="EvoPdf" Version="14.0.2" />
<PackageVersion Include="EvoPdf" Version="14.0.2" />Directory.Packages.props
<PackageReference Include="EvoPdf" />Project file
paket add EvoPdf --version 14.0.2
#r "nuget: EvoPdf, 14.0.2"
#:package EvoPdf@14.0.2
#addin nuget:?package=EvoPdf&version=14.0.2Install as a Cake Addin
#tool nuget:?package=EvoPdf&version=14.0.2Install as a Cake Tool
HTML to PDF for .NET | PDF Library for .NET and C# | Free Trial | Licensing | Support
EVO PDF Library for .NET (Classic) can be used in .NET Framework, .NET Core and .NET Standard applications to convert HTML to PDF, images and SVG, create and edit PDF documents.
The library can also be used to merge, split, stamp, secure and fill existing PDF documents.
This metapackage references the EvoPdf.HtmlToPdf package and is compatible with .NET Framework, .NET Core and .NET Standard 2.0 on Windows platforms.
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 EvoPdf.Next can be used on Windows, Linux, Azure and Docker platforms to create, edit and merge PDF documents, convert HTML to PDF or images, convert Word, Excel, RTF and Markdown to PDF, extract text and images from PDFs, search text in PDFs and convert PDF pages to images.
The compatibility list includes the following .NET versions, platforms and application types:
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.
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;
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.
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.
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.
Learn more about Target Frameworks and .NET Standard.
Showing the top 1 NuGet packages that depend on EvoPdf:
| Package | Downloads |
|---|---|
|
SSTech.Core
Generic library. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 14.0.2 | 20,104 | 2/10/2026 |