Winnovative Software Logo

 HTML to PDF Converter - Excel Library - ASP.NET Charts - RTF to PDF Converter
 PDF Merge and Split - PDF Security - PDF Viewers - PDF to Text - Images Extractor

 
Skip Navigation Links
 
Winnovative HTML to PDF - Community Edition

Winnovative Free HTML to PDF Converter for .NET - Community Edition

The Winnovative Free HTML to PDF Converter Library for .NET - Community Edition can be used in personal and commercial .NET applications to convert HTML documents to PDF, to create richly-formatted PDF reports and invoices.

The Free Community Edition has full support for HTML tags, CSS3, SVG and Web Fonts, page breaks control, repeating HTML table header and footer in PDF pages. It offers all the power and the exceptional accuracy of the Winnovative Professional HTML to PDF Library for .NET except the output is limited to only few PDF pages and the interactive features like links, bookmarks, table of contents and PDF forms are disabled in the generated PDF document.

The exact number of PDF page you can create for free with the Community Editions depends on the PDF page size and orientation. For example you can create three A4 pages with portrait orientation or four A4 PDF pages with landscape orientation. In general the Free Community Edition is suitable for creating small PDF reports and invoices while the Professional Edition does not have any limitation and can be used to create very large PDF documents.

The Winnovative Free HTML to PDF Converter for .NET - Community Edition does not depend on any installed software, does not need installation 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 4.0, 4.5 and later frameworks.

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 which makes it ideal for long running applications like websites or services.
Winnovative Professional HTML to PDF Converter for .NET
Download Icon Software Download
Winnovative Free HTML to PDF Converter for .NET - Community Edition is distributed in a Zip archive, the software does not need installation and does not depend on any installed software. You can start using the library by simply extracting the archive into a folder and referencing the .NET assembly in your project.

By downloading this software you implicitly agree with the terms and conditions from our End User License Agreement. Please read carefully this agreement before downloading the software on your computer.
Download Free HTML to PDF Converter v14.1 for .NET - Community Edition
On Windows 7 and later, after you have extracted the files from the archive, make sure the product binaries and documentation files (the .dll , .dat and .chm files) were not blocked by Windows. Open the file Properties in Windows Explorer and if there is an 'Unblock' button click on it to unblock the file.
Winnovative Free HTML to PDF Converter - Community Edition NuGet Logo ImageNuGet package can be downloaded and managed directly from your Visual Studio project. NuGet is a Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects that use the .NET Framework.
More Winnovative HTML to PDF Converter Features

Free HTML to PDF Converter - Community Edition Features

Convert web pages, HTML strings to PDF files or in memory
Free conversion limited to 3 portrait or 4 landscape PDF pages
Support for HTML5 features like CSS3, SVG and Web Fonts
Convert HTML with SVG and Web Fonts to PDF
Full support for Unicode and right to left languages
Set PDF page size to a standard or a custom size
Set PDF page orientation and PDF document margins
Set JPEG compression level for images in PDF document
Control page breaks in PDF using standard CSS styles
Avoid page breaks inside HTML elements using CSS
Option to avoid cutting off images between PDF pages
Repeat the HTML table header and footer in PDF pages
Place and resize the HTML content anywhere in a PDF page
Shrink or stretch the HTML content to fit the PDF page
Automatically resize the PDF page to fit the HTML content
Embed true type fonts into the rendered PDF for portability
Enable or disable JavaScript during conversion
HTTP authentication support (IIS Windows Authentication)
Use current user credentials for NTLM authentication
Easy integration, no installation or setup is required on server
Designed and tested for multithreaded environments
Does not require IE WebBrowser or any third party tools
Compatible with .NET 2.0, .NET 4.0 and .NET 4.5 frameworks
Compatible with Windows Azure Cloud applications
Can be deployed on the server by simple xcopy deployment
Works both in 32-bit and 64-bit environments
C# samples for ASP.NET, Windows Forms
Full documentation for all the product features
The Community Edition features presented above represent only a subset of the Fully Featured Winnovative HTML to PDF Converter library for .NET. Please see the Winnovative HTML to PDF Converter Online Demo for a live demonstration of all the features and capabilities.


Winnovative Free HTML to PDF Converter C# Code Sample for ASP.NET

Code Sample for ASP.NET in C#

With Winnovative Free HTML to PDF Converter for .NET - Community Edition you can easily convert a HTML document to PDF in just a few lines of code. The code below is copied from the demo application you can find the in the Samples folder of the software Zip archive.
protected void convertToPdfButton_Click(object sender, EventArgs e)
{
    // Create a HTML to PDF converter object with default settings
    HtmlToPdfConverter htmlToPdfConverter = new HtmlToPdfConverter();

    // Set license key received after purchase to use the converter in licensed mode
    // Leave it not set to use the converter in free mode
    htmlToPdfConverter.LicenseKey = "fvDh8eDx4fHg4P/h8eLg/+Dj/+jo6Og=";

    // Set HTML Viewer width in pixels which is the equivalent in converter of the browser window width
    htmlToPdfConverter.HtmlViewerWidth = int.Parse(htmlViewerWidthTextBox.Text);

    // Set HTML viewer height in pixels to convert the top part of a HTML page 
    // Leave it not set to convert the entire HTML
    if (htmlViewerHeightTextBox.Text.Length > 0)
        htmlToPdfConverter.HtmlViewerHeight = int.Parse(htmlViewerHeightTextBox.Text);

    // Set PDF page size which can be a predefined size like A4 or a custom size in points 
    // Leave it not set to have a default A4 PDF page
    htmlToPdfConverter.PdfDocumentOptions.PdfPageSize = SelectedPdfPageSize();

    // Set PDF page orientation to Portrait or Landscape
    // Leave it not set to have a default Portrait orientation for PDF page
    htmlToPdfConverter.PdfDocumentOptions.PdfPageOrientation = SelectedPdfPageOrientation();

    // Set the maximum time in seconds to wait for HTML page to be loaded 
    // Leave it not set for a default 60 seconds maximum wait time
    htmlToPdfConverter.NavigationTimeout = int.Parse(navigationTimeoutTextBox.Text);

    // Set an adddional delay in seconds to wait for JavaScript or AJAX calls after page load completed
    // Set this property to 0 if you don't need to wait for such asynchcronous operations to finish
    if (conversionDelayTextBox.Text.Length > 0)
        htmlToPdfConverter.ConversionDelay = int.Parse(conversionDelayTextBox.Text);

    // The buffer to receive the generated PDF document
    byte[] outPdfBuffer = null;

    if (convertUrlRadioButton.Checked)
    {
        string url = urlTextBox.Text;

        // Convert the HTML page given by an URL to a PDF document in a memory buffer
        outPdfBuffer = htmlToPdfConverter.ConvertUrl(url);
    }
    else
    {
        string htmlString = htmlStringTextBox.Text;
        string baseUrl = baseUrlTextBox.Text;

        // Convert a HTML string with a base URL to a PDF document in a memory buffer
        outPdfBuffer = htmlToPdfConverter.ConvertHtml(htmlString, baseUrl);
    }

    // Send the PDF as response to browser

    // Set response content type
    Response.AddHeader("Content-Type", "application/pdf");

    // Instruct the browser to open the PDF file as an attachment or inline
    Response.AddHeader("Content-Disposition", String.Format("{0}; filename=Getting_Started.pdf; size={1}",
        openInlineCheckBox.Checked ? "inline" : "attachment", outPdfBuffer.Length.ToString()));

    // Write the PDF document buffer to HTTP response
    Response.BinaryWrite(outPdfBuffer);

    // End the HTTP response and stop the current page processing
    Response.End();
}