Convert from HTML to PDF in CSharp VB and ASP.NET with a Free 3rd Party Library

Converting from html to pdf is not an easy task. There are some tools that can do that, but most of them cost thousands of dollars. SelectPdf offers a Community Edition (FREE) of the powerful Html To Pdf Converter for .NET that can be found in the full featured pdf library.

 
 
 
 
 
3.6 Star
(59)
53,151 times
Add to favorites
5/10/2019
E-mail Twitter del.icio.us Digg Facebook

Solution explorer

C#
VB.NET
<%@ Page Title="" Language="vb" MasterPageFile="~/Samples.Master" AutoEventWireup="true" CodeBehind="Default.aspx.vb" Inherits="SelectPdf.Samples.SelectPdf.Samples.Default" ValidateRequest="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>SelectPdf Free Html To Pdf Converter for .NET VB.NET / ASP.NET - Pdf Library for .NET Sample Code</title>
    <meta name="description" content="SelectPdf Free Html To Pdf Converter Samples for VB.NET / ASP.NET. Pdf Library for .NET with full sample code in C# and VB.NET." itemprop="description">
    <meta name="keywords" content="pdf library, sample code, html to pdf, pdf converter" itemprop="keywords">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContent" runat="server">
        <article class="post type-post status-publish format-standard hentry">
            <header class="entry-header">
                <h1 class="entry-title">SelectPdf Free Html To Pdf Converter for .NET - Community Edition - VB.NET / ASP.NET Samples</h1>
            </header>
            <!-- .entry-header -->

        <div class="entry-content">
            <p>
                <a href="http://selectpdf.com/community-edition/" title="Free Html To Pdf Converter for .NET">SelectPdf Html To Pdf Converter for .NET</a> is a powerful component 
                    that can generate pdf documents from web pages and html code in .NET Framework applications.
                    SelectPdf does not have any 3rd party dependencies and does not need users to install Adobe software to be able to create PDF documents.
            </p>
            <p>
            </p>
            <h3>Html to Pdf Converter Samples</h3>
            <div class="col2">
                <nav class="nav-single">
                    <a href="html-to-pdf-converter.aspx" title="SelectPdf Html To Pdf Converter for .NET - Html to Pdf Converter">Getting Started</a><br />
                    <a href="convert-url-to-pdf.aspx" title="SelectPdf Html To Pdf Converter for .NET - Convert from url to pdf">Convert Url to Pdf</a><br />
                    <a href="convert-html-code-to-pdf.aspx" title="SelectPdf Html To Pdf Converter for .NET - Convert from html code to pdf">Convert Html Code to Pdf</a><br />
                    <a href="pdf-converter-properties.aspx" title="SelectPdf Html To Pdf Converter for .NET - Setting Document Properties with Html to Pdf Converter">Pdf Document Properties</a><br />
                    <a href="pdf-converter-viewer-preferences.aspx" title="SelectPdf Html To Pdf Converter for .NET - Setting Pdf Viewer Preferences for the Html to Pdf Converter">Pdf Viewer Preferences</a><br />
                    <a href="pdf-converter-security.aspx" title="SelectPdf Html To Pdf Converter for .NET - Setting Pdf Document Security with the Html to Pdf Converter">Pdf Security Settings</a><br />
                    <a href="conversion-delay.aspx" title="SelectPdf Html To Pdf Converter for .NET - Conversion Delay with Html to Pdf Converter">Conversion Delay</a><br />
                    <a href="html-to-pdf-headers-and-footers.aspx" title="SelectPdf Html To Pdf Converter for .NET - Pdf Headers and Footers with Html to Pdf Converter">Headers and Footers</a><br />
                    <a href="page-breaks.aspx" title="SelectPdf Html To Pdf Converter for .NET - Control Page Breaks with Html to Pdf Converter">Page Breaks</a><br />
                </nav>
            </div>
            <div class="col2">
                <nav class="nav-single">
                    <a href="automatic-bookmarks.aspx" title="SelectPdf Html To Pdf Converter for .NET - Automatic Bookmarks with Html to Pdf Converter">Automatic Bookmarks</a><br />
                    <a href="http-headers.aspx" title="SelectPdf Html To Pdf Converter for .NET - Set HTTP Headers with Html to Pdf Converter">HTTP Headers</a><br />
                    <a href="http-cookies.aspx" title="SelectPdf Html To Pdf Converter for .NET - Set HTTP Cookies with Html to Pdf Converter">HTTP Cookies</a><br />
                    <a href="http-post-request.aspx" title="SelectPdf Html To Pdf Converter for .NET - Set parameters with a POST request with Html to Pdf Converter">HTTP POST Request</a><br />
                    <a href="media-types.aspx" title="SelectPdf Html To Pdf Converter for .NET - Use media types with Html to Pdf Converter">Media Types</a><br />
                    <a href="html-to-pdf-converter-links.aspx" title="SelectPdf Html To Pdf Converter for .NET - Pdf Internal and External Links - Html to Pdf Converter">Internal and External Links</a><br />
                    <a href="convert-current-page-to-pdf.aspx" title="SelectPdf Html To Pdf Converter for .NET - Convert Current WebPage to Pdf">Current WebPage to Pdf in Asp.Net</a><br />
                    <a href="convert-and-email.aspx" title="SelectPdf Html To Pdf Converter for .NET - Convert WebPage to Pdf and Email as Attachment">Convert to Pdf and Email as Attachment</a><br />
                </nav>
            </div>
            
            <div class="col-clear"><br /></div>

            <h3>IMPORTANT</h3>
            <p>
                This Community Edition of SelectPdf IS NOT THE FREE TRIAL for SelectPdf Commercial Library. This is a FREE product with <b>limited functionality</b>.
                If you want to try the full featured SelectPdf Library, download a free trial version from here: 
                <a href="http://selectpdf.com/pdf-library-for-net/" target="_blank" title="Html To Pdf Converter">http://selectpdf.com/pdf-library-for-net/</a>
                <br />
            </p>
            <p>
                The following features are not part of the free community edition. 
                To use any of these features you need the full <b>commercial</b> <a href="http://selectpdf.com/pdf-library-for-net/" title="SelectPdf Library for .NET" target="_blank">SelectPdf Library for .NET</a>:
            </p>
            <p>
                - Create PDF documents with more than 5 pages.<br />
                - Convert only a certain section of the page, specified by the html element ID.<br />
                - Manually start the conversion to PDF from javascript.<br />
                - Specify a JS startup script that will run before the conversion.<br />
                - Hide parts of the web page during the html to pdf conversion.<br />
                - Load and modify existing PDF documents.<br />
                - Add additional HTML, text, images to PDF (using PdfHtmlElement, PdfTextElement, PdfImageElement objects).<br />
                - Get web elements location in PDF.<br />
                - Specify the open action of the PDF document (jump to page, run script).<br />
                - Custom headers and footers on specific PDF pages.<br />
                - Form fields filling.<br />
                - PDF portfolios management.<br />
                - Resize/scale content of existing PDF documents.<br />
                - Extract text from PDF (PDF to Text converter).<br />
                - Search for text in PDF.<br />
                - Convert PDF pages to images (PDF to Image converter).<br />
            </p>
        </div>
        <div class="col-clear"></div>
        <!-- .entry-content -->
        </article>
        <!-- #post -->
</asp:Content>