Ω578867473:Winnovative HTML to PDF Converter for .NET is a library that can be easily integrated in any type of .NET applications to convert web pages, HTML strings and streams to PDF or to image. The converter has support for HTML5, CSS3, SVG, Canvas, Web Fonts and JavaScript. It combines the powerful printer friendly PDF format with the flexibility of the HTML format into a modern tool for creating nicely formatted and easily maintainable PDF reports and documents.
The main functionality of the library is to convert HTML documents to PDF. But the library does much more than this. You can also convert HTML to raster images or HTML to SVG using the appropriate interfaces and you can edit, merge or split existing PDF documents.
It takes only one a few lines of code to convert a web page from a given URL to a PDF document:
Code Sample - Minimal Code to Convert a HTML Document to PDF
using Winnovative; HtmlToPdfConverter htmlToPdfConverter = new HtmlToPdfConverter(); byte[] outPdfBuffer = htmlToPdfConverter.ConvertUrl(url);
Imports Winnovative Dim htmlToPdfConverter As New HtmlToPdfConverter() Dim outPdfBuffer() As Byte = htmlToPdfConverter.ConvertUrl(url)
The resulted memory buffer can be saved to a file or, when the library is used in ASP.NET, it can be sent as response to a browser.
Winnovative HTML to PDF Converter for .NET is not using any third party tools and no installations or special settings are necessary on the server in order to get it working. The same assembly works both in 32-bit and 64-bit environments and xcopy deployment on the server is supported. The product is delivered into a zip archive and it doesn't have an installer. You have to simply unzip the archive in a folder on the disk. Below is a brief description of the archive files and folders.
Top Level Files
wnvhtmltopdf.dll ‐ is the HTML to PDF converter assembly that you can link in any .NET application.
wnvinternal.dat ‐ is a resource file of wnvhtmltopdf.dll needed for HTML to PDF conversion.
wnvhtmltopdf.xml ‐ is the HTML to PDF converter API reference in XML format for Visual Studio IntelliSense.
Help.chm ‐ contains the HTML to PDF converter library API Reference and User Guide in Microsoft Compiled HTML Help format.
DemoApp.exe ‐ is a Windows Forms demo application that can be used to convert a web page from an URL or a HTML string to PDF or Image.
Samples Folder
The Samples folder contains the demo applications for .NET 4.0 and later versions in C# and VB.NET for ASP.NET Web Forms, Windows Forms, ASP.NET MVC and Azure Cloud Service. They offer ready to use code for all the major features of the library.
AspNet ‐ this folder contains the demo applications for ASP.NET Web Forms in C# and VB.NET.
WinForms ‐ this folder contains the demo applications for Windows Forms in C# and VB.NET.
Mvc ‐ this folder contains a demo application for ASP.NET MVC in C#.
Azure ‐ this folder contains a demo application for ASP.NET Web Forms in C# to be deployed as an Azure Cloud Service Application
DemoAppFiles Folder
The DemoAppFiles folder contains the input and output files for DemoApp.exe.
The hardware and software environment required to successfully deploy applications using the Winnovative HTML to PDF Converter is described below.
Operating System
The product is compatible with Windows XP, Windows 2003 Server and later versions of Windows. Windows 7 or later are recommended for development and Windows Server 2008 R2 or later versions are recommended for deployment.
Hardware Architecture
The product is supported both on 32‐bit and 64‐bit versions of Windows. When converting very large HTML documents the memory consumption can go high and in this case it is recommended to run the converter in a 64‐bit process which has a larger address space. When using the library in ASP.NET you have to set 'Enable 32-bit' flag of the IIS application pool on false to make sure the converter runs in a 64-bit process.
Internal Memory
The converter uses the internal memory for intermediate data structures and to store the generated PDF document. Function of the HTML document the internal memory usage during conversion can be lower or higher. In general it is recommended to have a server with at least 2GB of free RAM where to deploy your application using the converter. If you convert very large HTML documents you should make sure you run the converter in a 64-bit process. See the previous section for more details.
.NET Runtime Version
The converter library is compatible with .NET 4.0 and later runtimes. There is also a legacy version compatible the with the old .NET 2.0 runtime but in general it is recommended to use the version of the library targeting the .NET 4.0 and later runtimes.
ASP.NET Trust Level
The converter needs Full Trust level in ASP.NET applications. This is the default trust level in IIS.
Winnovative HTML to PDF Converter for .NET can be deployed to Microsoft Azure Cloud patform as part of your .NET applications
Deployment to Azure Cloud
Winnovative HTML to PDF Converter for .NET library can be used in web roles and worker roles of Azure Cloud Services and in applications running in Azure Virtual Machines. For Azure App Service there is a special solution because this type of applications impose some restrictions incompatible with the library requirements. There is an example of Azure Cloud Service Application in the Samples\Azure folder of software installation.
For Azure App Service there is a separate solution consisting in a service that can be installed as an Azure Cloud Service or Azure Service Fabric application and a client library for .NET or .NET Core that can be linked directly into your applications to call that service completely transparent for you. The API of the client library is almost identical to the regular .NET library API.
The solution for Azure Websites is described in detail in Winnovative HTML to PDF Converter for Azure Websites page of our website. There you can find the link to download the solution, installation instructions and sample code.
See Also
Winnovative HTML to PDF Converter for .NET can be deployed to Microsoft .NET Core patform as part of your .NET applications
Deployment to .NET Core
For .NET Core applications running on Windows systems there is a separate library you can download from our website which is fully compatible with .NET Core 2.1, .NET Core 3.0 and later runtimes.
For .NET Core applications running on other platforms than Windows, there is also a solution consisting in a service that can be installed on a remote Windows machine or in Azure Cloud and a .NET Core Client library that can be linked directly into your .NET Core applications to call that service completely transparent for you. The API of the .NET Core Client library is almost identical to the regular .NET library API.
The .NET Core Client solution is described in detail in Winnovative HTML to PDF Converter for .NET Core page of our website. There you can find the link to download the solution, installation instructions and sample code.
See Also