Winnovative Software Solutions HTML to PDF Converter


 HTML to PDF Converter for .NET - Free Converter Application - PDF Creator
 PDF Merge/Split - PDF Security - RTF to PDF Converter - Excel Library - Charts

 
Skip Navigation Links
 

HTML to PDF Converter Library 8.0 for .NET

The Winnovative HTML to PDF Converter library for .NET can be linked into any .NET application, either ASP.NET web sites or Windows Forms and WPF applications, to convert URLs, HTML strings and streams to a PDF document or to an image.

You can use the HTML to PDF Converter for .NET as a general purpose tool for converting web pages and HTML code to PDF and images or you can use it as part of our .NET Reporting Toolkit to easily create PDF reports directly from ASP.NET pages and to benefit from the great power of ASP.NET controls.

The converter offers full support for HTML tags and CSS, page breaks control with CSS styles, automatically repeating HTML table header on each PDF page, live URLs and internal links in PDF, automatically generated bookmarks, HTML in the headers and footers.

The HTML to PDF Converter is not using a printer driver and no 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 library is compatible with .NET 2.0, .NET 3.5 and .NET 4.0 frameworks and with Windows Azure Cloud applications.

The library was designed and tested to work reliably in multithreaded environments and to completely release all the resources used during conversion after each conversion. This makes it suitable for usage in high traffic ASP.NET websites and services running a long period of time without interruption.

Main Features

HTML to PDF Converter for .NET Box
Easy integration, no installation or setup is necessary on the server
Delivered as a single strong named .NET assembly (can be installed in GAC)
Compatible with .NET 2.0, .NET 3.5 and .NET 4.0 frameworks
Compatible with Windows Azure Cloud applications
Can be deployed on the server by simple copy (xcopy deployment support)
Can be used from ASP.NET, Windows Forms, WPF, Web Service or Console applications
The same assembly can be used both on 32-bit and 64-bit Windows servers
Convert web pages, HTML strings and streams to PDF files or PDF streams in memory
Convert a web pages, HTML strings and streams to various image formats
Convert multiple web pages, HTML strings and streams into the same PDF document
Place the HTML content anywhere in a PDF page as HtmlToPdfElement objects
Designed and tested for multithreaded environments and high traffic websites
Generate PDF documents compliant with PDF/A, PDF/X and PDF/SiqQ standards
Full support for Unicode, complex script and right to left Asian languages (Arabic, Hebrew, CJK)
Set PDF page size to a standard size (A4, A3, etc) or to a custom size
Set PDF page orientation (portrait or landscape)
Set PDF document margins
Set PDF streams compression level to reduce the PDF document size
Set JPEG compression level for images to reduce the PDF document size
Add HTML, text, images and page numbers in header and footer
Show/hide header and footer on odd/even pages
Control of the page breaks using CSS styles
Force page breaks with page-break-before:always and page-break-after:always CSS styles
'Keep Together' feature with page-break-inside:avoid CSS style
Option to avoid cutting off texts between PDF pages
Option to avoid cutting off images between PDF pages
Repeat the header of HTML tables with display:table-header-group CSS style on each PDF page
Options to selectively exclude HTML regions from the rendered PDF document
Options to shrink or stretch the HTML content to fit the PDF document page width
Option to automatically resize the PDF page to a custom size to fit the HTML content
Convert HTTP links from HTML to HTTP links in PDF pointing to external resources
Convert internal links from HTML to internal links in PDF to easily create tables of contents
Automatically generated bookmarks for a specified list of HTML tags
Get the position in PDF, by HTML ID or by HTML tag name, of any HTML element
Embed true type fonts into the rendered PDF
Append or prepend external PDF files to the conversion result
Password protect, allow/deny printing, editing, copying of the generated PDF document
Set the PDF document properties like author, title, subject, keywords, creation date, etc.
Enable/disable JavaScript in rendered web page during conversion
Enable/disable ActiveX controls in rendered web page during conversion
Server authentication support (e.g IIS Integrated Windows Authentication)
Send custom HTTP headers when the web page is requested by the converter (e.g. cookies)
C# and VB.NET full samples for ASP.NET and Windows Forms
Free Win32 HTML to PDF Converter Application built on top of the library


HTML to PDF Converter - Version 8.x History

New in v8.0 (released February 20, 2012)

Cumulative update (new features and bug fixes)

HTML to PDF Converter - Version 7.x History

New in v7.0 (released April 28, 2011)

Cumulative update (new features and bug fixes)

HTML to PDF Converter - Version 6.x History

New in v6.4 (released January 14, 2011)

Performance improvements

New in v6.3 (released December 10, 2010)

Tested in Windows Azure Cloud applications
Minor improvements

New in v6.2 (released June 29, 2010)

Added assemblies for .NET 4.0
Added samples for .NET 4.0 and Visual Studio 2010
Minor improvements

New in v6.1 (released March 16, 2010)

Added assemblies for .NET 4.0 RC
Added samples for .NET 4.0 and Visual Studio 2010 RC
Minor improvements

New in v6.0 (released February 15, 2010)

Repeat the header of long HTML tables on each PDF page where the table is rendered using the display:table-header-group style
Exclude HTML regions from rendering using the the HtmlExcludedRegionsOptions property of the PdfConverter class
Improved the converter behavior in multithreaded applications and in high traffic websites
Improved the scrolling speed of the generated PDF document when the document is opened in Adobe Reader
Added the Console_MultithreadedPerformance sample application to measure the converter performance in multithreaded applications
Added sample applications to show how to repeat the head of a HTML table on each PDF page where the table is rendered

HTML to PDF Converter - Version 5.x History

New in v5.5 (released August 21, 2009)

Added the HtmlDocumentInfo property which can be used to get the title, description and keywords from the HTML document meta tags
Added methods to save the generated PDF document to a Stream besides the existing methods to save into a memory buffer or into a file
Reduced the size of the generated PDF document for some input HTML documents

New in v5.4 (released July 9th, 2009)

Import bookmarks from the external PDF documents appended and prepended to the conversion result
Added the OpenAction property to execute a JavaScript code or to automatically go to a PDF page when the the PDF document is displayed
Added the FitHeight property to make the HTML content fit the PDF page height
Added the HttpRequestHeaders property to send HTTP headers (e.g. cookies) to the web server when the web page is requested by converter
Added the TransparencyEnabled property to enable or disable all the transparencies from the generated PDF document
Added the DrawBackground property for HtmlToPdfArea and HtmlToPdfElement to make visible the PDF objects behind them
Added a demo application for WPF (Windows Presentation Foundation)
Added a demo application for how to alternate the header and footer content on odd and even pages of the generated PDF document

New in v5.3.1 (released April 24th, 2009)

Improved the speed of true type fonts embedding in PDF

New in v5.3 (released April 7th, 2009)

Resolved a problem with converting some web sites with JavaScript enabled
Resolved a problem with creating PDF/X conformant documents

New in v5.2 (released March 9th, 2009)

Improved support for complex script and right to left Asian languages
Added an option to generate PDF/A, PDF/X or PDF/SiqQ compliant documents
Added an option to specify the color space of the PDF document (RGB, CMYK, Grayscale)
Performance improvements
C# and VB.NET samples for creating tables of contents with page numbers
C# and VB.NET samples for multiple HTML conversions in the same PDF
C# and VB.NET samples for retrieving the position in PDF of the HTML elements

New in v5.1 (released February 12th, 2009)

API to get the position in PDF (by ID or by tag name) of any HTML element
API to convert multiple HTML to the same PDF document
API to add texts, images, shapes, digital signatures, bookmarks, attachments to the PDF document created by the converter
Ensured the generated PDF is PDF/SiqQ compliant
Ensured the converter works when FIPS compliant algorithms are enabled

New in v5.0 (released January 30th, 2009)

Convert the HTML links with anchors to internal links in PDF to easily create a table of contents in the generated PDF
Added an option to compress images in PDF with JPEG to highly reduce the PDF document size
Allow any number of HtmlToPdfArea, TextArea and ImageArea in the generated PDF document header and footer
Added the possibility to prepend an array of external PDF documents before conversion to create cover pages
Performance improvements
See Older Versions History >>


Code Sample

1:     protected void btnConvert_Click(object sender, EventArgs e)
2:     {
3:         PdfConverter pdfConverter = new PdfConverter();
4:  
5:         pdfConverter.PdfDocumentOptions.PdfPageSize = PdfPageSize.A4;
6:         pdfConverter.PdfDocumentOptions.PdfPageOrientation = PDFPageOrientation.Portrait;
7:         pdfConverter.PdfDocumentOptions.PdfCompressionLevel = PdfCompressionLevel.Normal;
8:         pdfConverter.LicenseKey = "MyLicenseKeyString";
8:  
9:         byte[] downloadBytes = pdfConverter.GetPdfFromUrlBytes(MyURL);        
10:  
11:        System.Web.HttpResponse response = System.Web.HttpContext.Current.Response;
12:        response.Clear();
13:        response.AddHeader("Content-Type", "binary/octet-stream");
14:        response.AddHeader(
                        "Content-Disposition",
15:             "attachment; filename=" + "Rendered.pdf" + "; size=" 
                + downloadBytes.Length.ToString());
16:        response.Flush();
17:        response.BinaryWrite(downloadBytes);
18:        response.Flush();
19:        response.End();
20:     }


HTML to PDF Converter

HTML to PDF Conversion - Live Demo

In the online demo below you can see the capabilities of the HTML to PDF Converter for .NET. You can enter the URL of any web page accessible from Internet and press the Convert button to render the web page either to a PDF document or to an image in the preferred format. If the resulted PDF document does not look as expected please check the FAQ page or email us about the problem. Your feedback is very important for us.

Note: The online demo limits the number of pages of the generated PDF document to about 20 pages in A4 Portrait format or 40 pages in A4 Landscape format. The downloaded evaluation version does not have this limitation.
Enter URL:    
           

 
                   
 


HTML to PDF Converter