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
 

Winnovative PDF Creator Library for .NET

The Winnovative PDF Creator library for .NET can be linked into any .NET application, either ASP.NET web sites or Windows Forms applications. It offers enhanced HTML to PDF conversion capabilities, RTF to PDF conversion, PDF merge and split, PDF encryption and digital signatures, bookmarks, interactive features like internal and external links, file attachments, texts and images, text notes, templates that can be used to add content repeated on each page like HTML watermarks, HTML headers and footers, all under an unitary object oriented API.

The integration is extremely easy and no additional installation  is necessary in order to get started. It's just a .NET 2.0 assembly that you have to reference in your application. It fully supports all Windows versions including 64-bit servers and Windows Vista.

HTML to PDF Conversion

HTML to PDF Converter for .NET Box
The PDF Creator includes all the HTML to PDF Converter features and additionally it offers the following advanced features.

Place the HTML to PDF conversion result in any position in PDF document
Set the width and height in PDF of content rendered from HTML
Add many conversions in the same document in any position
Possibility to get the bounds of the rendered content in each rendered page
Set the transparency for the rendered content
Rotate the rendered PDF content
Add HTML in templates that can repeated on each page of the PDF document 
Add HTML in header and footer of the PDF document

RTF to PDF Conversion

The PDF Creator includes all the RTF to PDF Converter features and additionally it offers the following advanced features.

Place the RTF to PDF conversion result in any position in PDF document
Set the width and height in PDF of content rendered from RTF
Add many conversions in the same document in any position
Possibility to get the bounds of the rendered content in each rendered page
Set the transparency for the rendered content
Rotate the rendered PDF content
Add RTF in templates that can repeated on each page of the PDF document 
Add RTF in header and footer of the PDF document

PDF Security

The PDF Creator offers the following security features.

Add ordinary digital signatures
Set user and owner passwords
Encrypt PDF document content
40 and 128 bit encryption keys
Set PDF document permissions (print, edit, copy)

Other Features 

The PDF Creator offers the following features.

Add texts and image elements to the PDF documents and template
Render multipage images (TIFF) to PDF
Add graphic elements like lines, rectangles, ellipses, circles, Bezier curves
Create bookmark for the PDF document
Merge and split PDF files and streams with MergePdf and SplitPdf classes
Create links to internal and external resources in the PDF document
Create file attachments
Create text notes
Rotate PDF document pages
Add viewer preferences
Add document description
Add fonts and color directly from .NET Font and Color structures



Winnovative PDF Creator - HTML to PDF Conversion Demo


In the online demo below you can see the HTML to PDF conversion capabilities of the PDF Creator for .NET. You can enter the URL of any web page accessible from Internet and press the Convert button to render the web page into a PDF document. 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.

Select HTML source:
Enter URL to Convert:    
 
Location and size of the rendered content
- negative values mean auto determined
X Location: points Y Location: points
Width: points Height: points
Converter Options
   
   
 

      


Code Sample for HTML to PDF Conversion

The code below was taken from the ASP.NET sample available for download with the PDF Creator archive. It basically shows how to add two HTML to PDF conversions in a PDF document separated by a text element.
    protected void btnConvert_Click(object sender, EventArgs e)
    {
        //set the license key
        LicensingManager.LicenseKey = 
"mj0WW6eCQTFvpDizfaa0RQvYSnDGNoBRH7hcZonemkHHfiruweooXpWgorvDv1h/";
 
        //create a PDF document
        Document document = new Document();
 
        //optional settings for the PDF document like margins, compression
            level,
        //security options, viewer preferences, document information,
                        etc
        document.CompressionLevel = CompressionLevel.NormalCompression;
        document.Margins = new Margins(10, 10, 0, 0);
        document.Security.CanPrint = true;
        document.Security.UserPassword = "";
        document.DocumentInformation.Author = "HTML
                        to PDF Converter";
        document.ViewerPreferences.HideToolbar = false;
 
        //Add a first page to the document. The next pages will inherit the
            settings //from this page 
        PdfPage page = document.Pages.AddNewPage(PageSize.A4, new Margins(10, 10, 0, 0), 
                       PageOrientation.Portrait);
 
        // add a font to the document that can be used for the texts elements
        
        PdfFont font = document.Fonts.Add(new Font(new FontFamily("Times New Roman"), 10, 
                       GraphicsUnit.Point));
 
        // add header and footer before renderng the content
        AddHtmlHeader(document);
        AddHtmlFooter(document, font);
 
        // convert HTML to PDF
        HtmlToPdfElement htmlToPdfElement;
 
        if (convertURL)
        {
            // convert a URL to PDF
            string urlToConvert = textBoxWebPageURL.Text.Trim();
 
            htmlToPdfElement = new HtmlToPdfElement(xLocation, yLocation, 
                    width, height, urlToConvert);
        }
        else
        {
            // convert a HTML string to PDF
            string htmlStringToConvert = textBoxHTMLCode.Text;
            string baseURL = textBoxBaseURL.Text.Trim();
 
            htmlToPdfElement = new HtmlToPdfElement(xLocation, yLocation, width, height, 
                        htmlStringToConvert, baseURL);
        }
 
        //optional settings for the HTML to PDF converter
        htmlToPdfElement.FitWidth = cbFitWidth.Checked;
        htmlToPdfElement.EmbedFonts = cbEmbedFonts.Checked;
        htmlToPdfElement.LiveUrlsEnabled = cbLiveLinks.Checked;
        htmlToPdfElement.RightToLeftEnabled = cbRTL.Checked;
        htmlToPdfElement.ScriptsEnabled = cbClientScripts.Checked;
        htmlToPdfElement.ActiveXEnabled = cbActiveXEnabled.Checked;
 
        // add theHTML to PDF converter element to
                        page
        AddElementResult addResult = page.AddElement(htmlToPdfElement);
 
        // The code below can be used add some other elements right under
            the conversion result 
        // like texts or another HTML to PDF conversion
 
        // add a text element right under the HTML
                        to PDF document
        PdfPage endPage = document.Pages[addResult.EndPageIndex];
        TextElement nextTextElement = new TextElement(0, addResult.EndPageBounds.Bottom + 10, 
                             "Below there is another HTML to PDF Element", font);
        nextTextElement.ForeColor = Color.Green;
        addResult = endPage.AddElement(nextTextElement);
 
        // add another HTML to PDF converter element right under the text
            element
        endPage = document.Pages[addResult.EndPageIndex];
        HtmlToPdfElement nextHtmlToPdfElement = 
                        new HtmlToPdfElement(0, addResult.EndPageBounds.Bottom + 10, 
                                 "http://www.google.com");
        addResult = endPage.AddElement(nextHtmlToPdfElement);
 
        // send the generated PDF document to client browser
        document.Save(Response, false, "HtmlConvert.pdf");
    }
 
    private void AddHtmlHeader(Document document)
    {
        string thisPageURL = HttpContext.Current.Request.Url.AbsoluteUri;
        string headerAndFooterHtmlUrl = thisPageURL.Substring(0, thisPageURL.LastIndexOf('/')) 
                          + "/HeaderAndFooterHtml.htm";
 
        //create a template to be added in the header
                        and footer
        document.HeaderTemplate = document.AddTemplate(document.Pages[0].ClientRectangle.Width, 60);
        // create a HTML to PDF converter element to be added to the header
            template
        HtmlToPdfElement headerHtmlToPdf = new HtmlToPdfElement(headerAndFooterHtmlUrl);
        document.HeaderTemplate.AddElement(headerHtmlToPdf);
    }
 
    private void AddHtmlFooter(Document document, PdfFont footerPageNumberFont)
    {
        string thisPageURL = HttpContext.Current.Request.Url.AbsoluteUri;
        string headerAndFooterHtmlUrl = thisPageURL.Substring(0, thisPageURL.LastIndexOf('/')) 
                          + "/HeaderAndFooterHtml.htm";
 
        //create a template to be added in the header
                        and footer
        document.FooterTemplate = document.AddTemplate(document.Pages[0].ClientRectangle.Width, 60);
        // create a HTML to PDF converter element to be added to the header
            template
        HtmlToPdfElement footerHtmlToPdf = new HtmlToPdfElement(headerAndFooterHtmlUrl);
        document.FooterTemplate.AddElement(footerHtmlToPdf);
 
        // add page number to the footer
        TextElement pageNumberText = 
new TextElement(document.FooterTemplate.ClientRectangle.Width - 100, 30,
                   "This is page &p; of &P; pages", footerPageNumberFont);
        document.FooterTemplate.AddElement(pageNumberText);
    }