Winnovative Next HTML to PDF Converter for .NET is a core component of the Winnovative PDF Next Library for .NET, using an advanced, highly accurate and reliable rendering engine that processes modern HTML, CSS and JavaScript content in compliance with the latest standards. The converter targets .NET Standard 2.0 and can be used in .NET Core and .NET Framework applications deployed on Linux and Windows platforms, including Azure App Service, Azure Functions and Docker. This package includes only the Linux x64 runtime. Separate packages are available for Windows or multi-platform runtimes. On Linux platforms, installing some dependency packages might be required, depending on the Linux distribution and version. The online documentation includes instructions for installing Linux dependencies on a variety of Linux platforms. Compatibility: * Linux x64 distributions * .NET 10.0, 9.0, 8.0, 7.0, 6.0 and .NET Standard 2.0 * Azure App Service and Azure Functions for Linux * Linux Virtual Machines * Docker containers for Linux * Web, Console and Desktop applications Main Features: * Convert HTML with CSS, web fonts and JavaScript to PDF * Support modern web standards and technologies * Add page numbering in PDF headers and footers from HTML * Repeat HTML table headers and footers in PDF pages * Control PDF page breaks with CSS in HTML * Create outlines and tables of contents from heading tags * Convert specific HTML regions * Retrieve HTML element positions in the PDF * Create tagged PDFs for accessibility * Trigger conversion automatically or manually * Render for screen or print media types * Set PDF security, viewer settings and signatures * Set HTTP headers and cookies * Use GET and POST requests * Convert HTML to JPEG, PNG and WebP images * Convert SVG to PDF * Asynchronous methods for async and await Documentation and code samples: https://www.winnovative-software.com/winnovative-pdf-next-html-to-pdf-dotnet
$ dotnet add package Winnovative.Pdf.Next.HtmlToPdf.LinuxWinnovative Next HTML to PDF for .NET | PDF Library for .NET | Winnovative Software | Free Trial | Licensing | Support
Winnovative Next HTML to PDF Converter for .NET is a core component of the Winnovative PDF Next Library for .NET that uses an advanced, highly accurate and reliable rendering engine to process modern HTML, CSS and JavaScript content in compliance with the latest standards.
The converter targets .NET Standard 2.0 and can be used in .NET Core and .NET Framework applications deployed on Windows and Linux platforms, including Azure App Service, Azure Functions and Docker.
This package includes only the Linux x64 runtime. Separate packages are available for Windows or multi-platform runtimes.
Winnovative PDF Next for .NET has a modular architecture, with separate NuGet packages for each major component to prevent unnecessary files from being included in your applications.
This package is a Linux x64 metapackage that references all Winnovative PDF Next for .NET NuGet packages required to run the HTML to PDF Converter component on Linux platforms.
There is also a multiplatform metapackage Winnovative.Pdf.Next.HtmlToPdf that references both the Windows and Linux packages, which is ideal when developing on one operating system and deploying to multiple runtime environments.
The compatibility list of this Linux x64 package includes the following platforms:
On Linux platforms, installing some dependency packages might be necessary, depending on the Linux distribution and version used.
Detailed instructions for installing Linux dependencies are available in the online documentation, in the Getting Started and Publish guides.
Install the package using your preferred NuGet package manager.
Winnovative.Pdf.Next.HtmlToPdf (Multi-platform)
https://www.nuget.org/packages/Winnovative.Pdf.Next.HtmlToPdf
Winnovative.Pdf.Next.HtmlToPdf.Windows (Windows x64)
https://www.nuget.org/packages/Winnovative.Pdf.Next.HtmlToPdf.Windows
Winnovative.Pdf.Next.HtmlToPdf.Linux (Linux x64)
https://www.nuget.org/packages/Winnovative.Pdf.Next.HtmlToPdf.Linux
Winnovative.Pdf.Next (Multi-platform)
https://www.nuget.org/packages/Winnovative.Pdf.Next
Winnovative.Pdf.Next.Windows (Windows x64)
https://www.nuget.org/packages/Winnovative.Pdf.Next.Windows
Winnovative.Pdf.Next.Linux (Linux x64)
https://www.nuget.org/packages/Winnovative.Pdf.Next.Linux
Core PDF API (create, edit, merge and secure PDF documents)
https://www.nuget.org/packages/Winnovative.Pdf.Next.Core
Word to PDF
https://www.nuget.org/packages/Winnovative.Pdf.Next.WordToPdf
Excel to PDF
https://www.nuget.org/packages/Winnovative.Pdf.Next.ExcelToPdf
RTF to PDF
https://www.nuget.org/packages/Winnovative.Pdf.Next.RtfToPdf
Markdown to PDF
https://www.nuget.org/packages/Winnovative.Pdf.Next.MarkdownToPdf
PDF Processor (PDF to text, PDF to images, extract images)
https://www.nuget.org/packages/Winnovative.Pdf.Next.PdfProcessor
All components of the Winnovative PDF Next for .NET library share the same namespace Winnovative.Pdf.Next and can be used together in the same application.
To use the library in your own code, add the following using directive at the top of your C# source file:
using Winnovative.Pdf.Next;For documentation and code samples, please visit: https://www.winnovative-software.com/winnovative-pdf-next-html-to-pdf-dotnet
You can copy the C# code lines from the section 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 send it to the browser for download in ASP.NET applications.
To convert a HTML string or an 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 Winnovative !", null, "HtmlToFile.pdf");
// convert HTML page from URL to a PDF file
string htmlPageURL = "https://www.winnovative-software.com";
converter.ConvertUrlToFile(htmlPageURL, "UrlToFile.pdf");To convert a HTML string or an 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 a HTML string to a memory buffer
byte[] htmlToPdfBuffer = converter.ConvertHtml("<b>Hello World</b> from Winnovative !", null);
// write the memory buffer to a PDF file
System.IO.File.WriteAllBytes("HtmlToMemory.pdf", htmlToPdfBuffer);
// convert an URL to a memory buffer
string htmlPageURL = "https://www.winnovative-software.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 applications 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 Winnovative !", null);
FileResult fileResult = new FileContentResult(htmlToPdfBuffer, "application/pdf");
fileResult.FileDownloadName = "HtmlToPdf.pdf";
return fileResult;You can download the Winnovative PDF Next for .NET evaluation package from Winnovative Downloads page of the website.
The evaluation package contains a demo ASP.NET application with full C# code for all features of the library.
You can evaluate the library for free as long as it is needed to ensure that the solution fits your application needs.
The Winnovative 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.