|
|
|
|
|
|
EvoPdf Next Library for .NET can be integrated into your applications 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 library targets .NET Standard 2.0 and can be used in .NET Core and .NET Framework applications that you can deploy on Windows and Linux platforms,
including Azure App Service and Functions or Docker.
The library has a modular structure, with separate NuGet packages for each major component to prevent unnecessary files from being included in your applications.
All components share the same EvoPdf.Next namespace and can be used together within the same project.
Below you can find the list of
EvoPdf Next for .NET components .
|
|
|
|
|
|
|
 |
|
Main Features |
|
|
Create, edit and merge PDF documents
Apply HTML stamps, headers and footers to PDFs
Generate password-protected and digitally signed PDFs
Convert HTML with CSS, web fonts and JavaScript to PDF
Convert HTML to JPEG, PNG and WebP images
Convert SVG to PDF
Convert Word DOCX to PDF
|
|
Convert Excel XLSX to PDF
Convert RTF to PDF
Convert Markdown to PDF
Convert PDF to text
Search text in PDF documents
Convert PDF pages to images
Extract images from PDF pages
|
|
|
 |
|
Compatibility |
|
|
Windows 10, 11 and Windows Server 2016 to 2025
Linux 64-bit distributions
.NET 10.0, 9.0, 8.0, 7.0, 6.0, .NET Standard 2.0
.NET Framework 4.6.2 to 4.8.1
|
|
Azure App Service and Azure Functions
Azure Cloud Services and Virtual Machines
Web, console and desktop applications
Docker containers for Windows and Linux
|
|
|
 |
|
Getting Started |
|
|
|
You can quickly get started with the ASP.NET demo application available for download, or you can integrate the library into your own project.
The online documentation,
contains detailed instructions on how to run an application using EvoPdf Next Library for .NET on Windows and Linux machines, Azure App Service
and Azure Functions for Windows and Linux.
You can view the current capabilities of the library by checking the
online demo
application and the API reference in the online documentation.
|
|
|
|
Download Demo Application
|
|
|
|
The ZIP package available for download from the link below includes an ASP.NET demo application project with complete C# source code covering all major library features.
|
|
|
|
|
|
Running the samples in the demo application that involve HTML to PDF conversion features on Linux platforms might require installing some dependency packages. The documentation includes an entire section dedicated to building, publishing and running the demo application on multiple platforms.
|
|
 |
|
NuGet Packages |
|
|
|
For Windows deployments, add a reference to the
EvoPdf.Next.Windows
NuGet package and for Linux deployments, add a reference to the
EvoPdf.Next.Linux
NuGet package.
There is also a multiplatform metapackage that references both the Windows and Linux packages,
EvoPdf.Next which is ideal when developing on one OS
and deploying to multiple runtime environments.
These NuGet packages install all the library components.
It is also possible to install only specific components.
Please see each component page for details about which NuGet package should be installed for that component.
|
|
 |
|
Installation |
|
|
|
The HTML to PDF Converter component uses a platform specific runtime.
On Windows platforms, the runtime generally does not require the installation of additional dependencies.
On Linux platforms installing some dependency packages might be necessary, depending on the exact version of Linux you are using.
In online documentation in
the Getting Started and Publish guides you can find instructions about Linux dependencies installation on a variety of Linux platforms.
The other components of the EvoPdf Next library don’t generally require the installation of additional dependencies.
|
|
 |
|
EvoPdf.Next Namespace |
|
|
|
All components of the EvoPdf Next for .NET library share the same
EvoPdf.Next
namespace and can be used together in the same application.
To use the library in your own code, add the using directive at the top of your C# source file, as shown below.
|
|
// add this using statement at the top of your C# file
using EvoPdf.Next;
|
|
 |
|
EvoPdf Next Components |
|
|
EvoPdf Next Library for .NET is a flexible and modular PDF development framework for creating, converting and processing PDF documents
in .NET applications. It includes converters from HTML, Word, Excel, RTF and Markdown to PDF, along with tools for extracting text
and images from PDF files, searching text within PDFs and converting PDF pages to images. Additionally, it provides a
PDF API for programmatic document creation, stamping, merging, securing and digital signing. All components use the EvoPdf.Next
namespace and run on Windows, Linux, Azure and Docker.
|
|
|
|
|
|
The Core component provides an API for programmatic creation, manipulation and security of PDF documents. It allows
you to build PDFs by adding text, images and other elements, and then apply encryption, digital signatures, permissions,
headers, footers and stamps.
|
|
|
|
|
|
|
The HTML to PDF Converter is a core component of the EvoPdf Next Library for .NET, built on a Chromium-based rendering engine that
enables accurate conversion of complex web pages into PDF documents while fully supporting the latest HTML, CSS and JavaScript
standards and technologies.
|
|
|
|
|
|
|
The Word to PDF Converter is a component of the EvoPdf Next Library for .NET that enables accurate conversion of complex Word
documents into PDF documents. It allows you to enhance the generated PDFs with tables of contents, headers, footers and stamps,
as well as apply security features.
|
|
|
|
|
|
|
The Excel to PDF Converter is a component of the EvoPdf Next Library for .NET that enables accurate conversion of complex Excel
documents into PDF documents. It allows you to enhance the generated PDFs with headers, footers and stamps, as well as apply
security features.
|
|
|
|
|
|
|
The RTF to PDF Converter is a component of the EvoPdf Next Library for .NET that enables accurate conversion of complex RTF
documents into PDF documents. It allows you to enhance the generated PDFs with tables of contents, headers, footers and stamps,
as well as apply security features.
|
|
|
|
|
|
|
The Markdown to PDF Converter is a component of the EvoPdf Next Library for .NET that enables accurate conversion of complex
Markdown documents into PDF documents. It allows you to enhance the generated PDFs with tables of contents, headers, footers
and stamps, as well as apply security features.
|
|
|
|
|
|
|
The PDF to Text Converter is a component of the EvoPdf Next Library for .NET that enables text extraction from PDF documents in
the original layout or optimized for reading, as well as text search in PDF that returns the exact positions of the matches.
|
|
|
|
|
|
|
The PDF to Image Converter is a component of the EvoPdf Next Library for .NET that enables the conversion of PDF pages to PNG
images. You can control the color space, resolution and background transparency of the generated images.
|
|
|
|
|
|
|
The PDF Images Extractor is a component of the EvoPdf Next Library for .NET that enables the extraction of images from PDF files.
The extracted images are in PNG format and preserve the transparency information available in the PDF.
|
|
|
|
|
|
|
 |
|
EvoPdf Next Library for .NET - C# Code Samples |
|
|
|
To convert a HTML string to a PDF document in a memory buffer and then save the data from buffer into 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 a 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);
|
|
|
To convert an URL to a PDF document in a memory buffer and then save the data from buffer into 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 URL to a memory buffer
string htmlPageURL = "http://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 Core application a HTML string or an URL to a PDF document in a memory buffer and then send it for download to 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 a 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 Core application a Word file to a PDF document in a memory buffer and then send it for download to browser you can use the C# code below.
|
|