<%@ Page Title="" Language="C#" MasterPageFile="~/Samples.Master" AutoEventWireup="true" CodeBehind="convert-url-to-image.aspx.cs" Inherits="SelectPdf.Samples.convert_url_to_image" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>SelectPdf for .NET - Convert from Url to Image - C# / ASP.NET</title>
    <meta name="description" content="SelectPdf Convert from Url to Image Sample for C# / ASP.NET. Pdf Library for .NET with full sample code in C# and VB.NET." itemprop="description">
    <meta name="keywords" content="convert from url to image, html to png, html to jpg, html to image, 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 for .NET - Convert from Url to Image - C# / ASP.NET Sample</h1>
            </header>
            <!-- .entry-header -->

            <div class="entry-content">
                <p>
                    This sample shows how to use SelectPdf html to image converter to convert an url to PNG, JPEG or BMP, also setting a few properties.
                </p>
                <p>
                    Url:<br />
                    <asp:TextBox ID="TxtUrl" runat="server" Width="90%" Text="https://selectpdf.com"></asp:TextBox>
                </p>
                <div class="col2">
                    Image Format:<br />
                    <asp:DropDownList ID="DdlImageFormat" runat="server">
                        <asp:ListItem Text="PNG" Value="png" Selected="True"></asp:ListItem>
                        <asp:ListItem Text="JPEG" Value="jpg"></asp:ListItem>
                        <asp:ListItem Text="BMP" Value="bmp"></asp:ListItem>
                    </asp:DropDownList><br />
                    <br />
                </div>
                <div class="col2">
                    Web Page Width:<br />
                    <asp:TextBox ID="TxtWidth" runat="server" Width="50px" Text="1024"></asp:TextBox> px<br />
                    <br />
                    Web Page Height:<br />
                    <asp:TextBox ID="TxtHeight" runat="server" Width="50px" Text=""></asp:TextBox> px<br />
                    (leave empty to auto detect)<br />
                    <br />

                </div>
                <div class="col-clear"></div>
                <p>
                    Rendering Engine:<br />
                    <asp:DropDownList ID="DdlRenderingEngine" runat="server">
                        <asp:ListItem Text="WebKit" Value="WebKit" Selected="True"></asp:ListItem>
                        <asp:ListItem Text="WebKit Restricted" Value="WebKitRestricted"></asp:ListItem>
                        <asp:ListItem Text="Chromium" Value="Chromium"></asp:ListItem>
                    </asp:DropDownList>
                </p>
                <p>
                    <asp:Button ID="BtnSubmit" runat="server" Text="Convert To Image" OnClick="BtnSubmit_Click" CssClass="mybutton" />
                </p>
            </div>
            <!-- .entry-content -->
        </article>
        <!-- #post -->
</asp:Content>
