Winnovative.Client package includes the HTML to PDF API in WinnovativeClient namespace and can be used in .NET Core applications. It also includes the API for the other Winnovative PDF tools.
dotnet add package WnvHtmlToPdf_NetCore_Client --version 17.0.0
NuGet\Install-Package WnvHtmlToPdf_NetCore_Client -Version 17.0.0
<PackageReference Include="WnvHtmlToPdf_NetCore_Client" Version="17.0.0" />
paket add WnvHtmlToPdf_NetCore_Client --version 17.0.0
#r "nuget: WnvHtmlToPdf_NetCore_Client, 17.0.0"
// Install WnvHtmlToPdf_NetCore_Client as a Cake Addin #addin nuget:?package=WnvHtmlToPdf_NetCore_Client&version=17.0.0 // Install WnvHtmlToPdf_NetCore_Client as a Cake Tool #tool nuget:?package=WnvHtmlToPdf_NetCore_Client&version=17.0.0
Winnovative HTML to PDF Client for .NET Core
Winnovative HTML to PDF Client Library for .NET Core can be easily integrated in any application targeting the .NET Core or .NET Standard 2.0 and above to create PDF documents from HTML pages and strings. The library can also be used to convert HTML to images, convert HTML to SVG, create, edit and merge PDF documents.
The client library offers in general the same features as the regular Winnovative HTML to PDF Library for .NET Core.
- 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
- Edit, stamp and merge PDF documents
The client library for .NET Core is compatible with any platform which supports .NET Standard 2.0 or above, including the platforms listed below:
- .NET Core 7, 6, 5, .NET Standard 2.0 , .NET Framework 4.6.2 (and above)
- Windows, Linux, macOS
- Azure, Azure App Service and Azure Functions
- Xamarin for iOS, macOS and Android
- Universal Windows Platform (UWP)
- Web, Console and Desktop applications
Before starting to use the Winnovative HTML to PDF Client for .NET Core in your applications you first have to install the Winnovative Server. The server can be installed as Azure Cloud Service Worker Role, Azure Cloud Service Web Role, Azure Service Fabric Application, IIS ASP.NET Web Application or Windows Service.
Winnovative Server can be downloaded from Winnovative Software Downloads page of the website. Winnovative Server package contains the server files and detailed installation instructions for each platform. You can start by installing Winnovative Server as a Windows Service on the local development machine with default options. In this case the assigned IP address is 127.0.0.1.
After the Winnovative Server was installed, you are ready to use the Winnovative HTML to PDF Client Library for .NET Core in your applications.
C# Code Samples
Copy the C# code lines from the section below to create a PDF document from a web page or from a HTML string and save the resulted PDF to a memory buffer for further processing, to a PDF file or send it to browser for download in ASP.NET Core applications.
The server IP address is assigned during server installation and it can be omitted from HtmlToPdfConverter constructor if the server was installed on the localhost IP address 127.0.0.1 . There are also variants of the constructor accepting an URL instead of IP address if the server was installed as a web service in Azure or in IIS.
At the top of your C# source file add the
using Winnovative.HtmlToPdfClient; statement to make available the Winnovative HTML to PDF Client API for your .NET application.
// add this using statement at the top of your C# file using Winnovative.HtmlToPdfClient;
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 // change the serverIP value if the server was installed on a remote machine string serverIP = "127.0.0.1"; HtmlToPdfConverter converter = new HtmlToPdfConverter(serverIP); // 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 = "http://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 // change the serverIP value if the server was installed on a remote machine string serverIP = "127.0.0.1"; HtmlToPdfConverter converter = new HtmlToPdfConverter(serverIP); // 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 = "http://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 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 // change the serverIP value if the server was installed on a remote machine string serverIP = "127.0.0.1"; HtmlToPdfConverter converter = new HtmlToPdfConverter(serverIP); // 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 full Winnovative Client for .NET package from Winnovative Software Downloads page of the website. Winnovative Client for .NET Core includes the HTML to PDF component besides other components under the WinnovativeClient namespace and it is intended to replace the Winnovative HTML to PDF Client for .NET package. The package contains the product binaries, demo Visual Studio projects with full C# code for ASP.NET Core targeting .NET Core 6.0 and later versions, the library documentation in CHM format.
There are separate demo projects for each major component of the library, including HTML to PDF, Word to PDF, Excel to PDF, PDF to Text, PDF to Image, PDF to HTML and PDF Images Extractor.
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 website.
The same license keys for Winnovative software works both with regular libraries for .NET Core and with Winnovative Client for .NET Core. For example, a license key for Winnovative PDF Toolkit PRO works with all components from client library, while a license for HTML to PDF Converter will work only with this component of the client library.
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-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.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||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.|
This package has no dependencies.
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.