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
Home
ProductsExpand Products
Online DemoExpand Online Demo
Download
Buy NowExpand Buy Now
SupportExpand Support
ContactExpand Contact
 

HTML to PDF Converter Library for .NET

The Winnovative HTML to PDF Converter library for .NET 2.0 can be linked into any .NET application, either ASP.NET web sites or Windows Forms applications, to add html to pdf conversion capabilities to your application.

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 standard ASP.NET databound server controls.

The converter allows you to control the PDF page size and orientation, page breaks, add HTML and page numbers in the header and footer, convert the internal and external links from HTML to internal or external links in PDF, automatically create bookmarks.

The integration is extremely easy and no additional installation is necessary in order to get started. The converter is delivered as a single strong named assembly for .NET 2.0 that you can reference directly in your application and that you can deploy on the server by simple copy. The exact layout preservation of the source HTML page in the pdf document resulted after conversion is one of the major goals of the converter.

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 2.0 assembly (can be installed in GAC)
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
Generate PDF documents compliant with PDF/A, PDF/X and PDF/SiqQ standards
Support for complex script and right to left Asian languages (Arabic, Hebrew, CJK, etc)
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
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)
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 5.x History

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

Older Versions History

New in v4.0.6 (released December 10th, 2008)

More descriptive error messages for easier troubleshooting

New in v4.0.5 (released November 19th, 2008)

Option to stretch the HTML content to fit the PDF page width

New in v4.0 (released September 3rd, 2008)

Added the possibility to specify the viewer preferences
Added the option to auto size the PDF page width
Header and footer improvements
Improved the rendering of PDFs with embedded image
Added a ConversionSummary property

New in v3.9.4 (released July 26th, 2008)

Improved the page breaks algorithm

New in v3.9.3 (released July 15th, 2008)

Added the possiblity to specify a navigation timeout

New in v3.9.1 (released July 9th, 2008)

Improved memory utilization during conversion

New in v3.9 (released June 11th, 2008)

Option to specify the Internet Security Zone of the converted URL

New in v3.8.2 (released June 3rd, 2008)

Improved the rendering of HTTP links in PDF
Improved the height auto-detection for some web pages

New in v3.8 (released May 9th, 2008)

Option to convert the whole HTML content to a single PDF page

New in v3.7.2 (released April 17th, 2008)

Improved true type fonts embedding in the generated PDF

New in v3.7 (released February 28th, 2008)

Automatically generated bookmarks for a specified list of HTML tags

New in v3.6.2 (released February 22, 2008)

Improved conversion of the large HTML files

New in v3.6.1 (released February 12, 2008)

Improved the rendering of transparent PNG and GIF images

New in v3.6 (released February 1st, 2008)

Convert HTTP links from header and footer to PDF links
Bug fixes

New in v3.5.6 (released January 23rd, 2008)

Improved memory utilization during conversion

New in v3.5.4 (released January 15th, 2008)

PDF Merge capabilities - Bug fixes

New in v3.5.2 (released December 7th, 2007)

Option to shrink the HTML content to fit PDF page width
Bug fixes

New in v3.5.1 (released November 28th, 2007)

Add HTML in the header and footer of the rendered PDF
Support for 64-bit environments and Windows Vista
Generate events before rendering a new page
Bug fixes

New in v3.2 (released October 30th, 2007)

Set PDF page size to a custom size in points
Show/hide header and footer on odd/even pages
Server authentication support (e.g IIS Authentication)
Support for right to left languages like Hebrew and Arabic
Automatic page breaks algorithm enhancements
Option to avoid cutting off images between PDF pages
Major speed enhancements

New in v3.1 (released September 28th, 2007)

Enable/disable client scripts from web page during conversion
Bug fixes

New in v3.0 (released September 19th, 2007)

Support for custom page breaks with CSS styles
Insert page breaks with page-break-before:always CSS style
Insert page breaks with page-break-after:always CSS style
'Keep Together' feature with page-break-inside:avoid
Live HTTP links in the rendered PDF
Embed true type fonts into the rendered PDF
Add security features to the generated PDF document
Password protect PDF, allow/deny printing, editing, copying, etc
Add description elements to the rendered PDF document
Set author name, title, subject, keywords, creation date, etc.


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: