# GrapeCity.Documents.Html.GcHtmlRenderer

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Html_GcHtmlRenderer" data-uid="GrapeCity.Documents.Html.GcHtmlRenderer" class="text-break">GcHtmlRenderer Class
</h1>
  <div class="markdown level0 summary"><p>Provides methods for converting HTML to PDF and images.</p>
<p>This class is deprecated as of GcHtml v6.0.0.
While old code that uses this and related classes will continue to work,
it is recommended to switch to using the new <a class="xref" href="GrapeCity.Documents.Html.GcHtmlBrowser.html">GcHtmlBrowser</a> class instead.
For information on how to convert existing code please see documentation at
https://www.grapecity.com/documents-api-pdf/docs/online/render_html_to_pdf.html
and
https://www.grapecity.com/documents-api-imaging/docs/online/render_html_to_image.html.
</p>
Note that the 3 platform-specific packages (GrapeCity.Documents.Html.Windows.X64,
GrapeCity.Documents.Html.Linux.X64 and GrapeCity.Documents.Html.Mac.X64) are no longer needed
and should be removed from your projects even if you do not convert your code to using
<a class="xref" href="GrapeCity.Documents.Html.GcHtmlBrowser.html">GcHtmlBrowser</a>.
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">GcHtmlRenderer</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Html.html">GrapeCity.Documents.Html</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Html.dll</h6>
  <h5 id="GrapeCity_Documents_Html_GcHtmlRenderer_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Obsolete(&quot;Use GcHtmlBrowser class instead.&quot;)]
public class GcHtmlRenderer : IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Obsolete(&quot;Use GcHtmlBrowser class instead.&quot;)&gt;
Public Class GcHtmlRenderer
    Implements IDisposable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Html_GcHtmlRenderer__ctor_System_String_" data-uid="GrapeCity.Documents.Html.GcHtmlRenderer.#ctor(System.String)">
          <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.-ctor.html#GrapeCity_Documents_Html_GcHtmlRenderer__ctor_System_String_">GcHtmlRenderer(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.html">GcHtmlRenderer</a> from HTML string.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Html_GcHtmlRenderer__ctor_System_Uri_" data-uid="GrapeCity.Documents.Html.GcHtmlRenderer.#ctor(System.Uri)">
          <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.-ctor.html#GrapeCity_Documents_Html_GcHtmlRenderer__ctor_System_Uri_">GcHtmlRenderer(Uri)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.html">GcHtmlRenderer</a> from <span class="xref">System.Uri</span>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Html_GcHtmlRenderer_LastLogMessage" data-uid="GrapeCity.Documents.Html.GcHtmlRenderer.LastLogMessage">
          <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.LastLogMessage.html">LastLogMessage</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the last log message from the headless Chromium shell.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Html_GcHtmlRenderer_AuthServerWhitelist" data-uid="GrapeCity.Documents.Html.GcHtmlRenderer.AuthServerWhitelist">
          <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.AuthServerWhitelist.html#GrapeCity_Documents_Html_GcHtmlRenderer_AuthServerWhitelist">AuthServerWhitelist</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a whitelist to passthrough Windows authentication for the specified domains.</p>
<p>
For example: "*example.com,*foobar.com,*baz".
</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Html_GcHtmlRenderer_BrowserDestinationFolder" data-uid="GrapeCity.Documents.Html.GcHtmlRenderer.BrowserDestinationFolder">
          <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.BrowserDestinationFolder.html#GrapeCity_Documents_Html_GcHtmlRenderer_BrowserDestinationFolder">BrowserDestinationFolder</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the destination folder for the Chromium downloads.</p>
<p>
If this property is not set, the downloads are stored to [root]/.local-chromium,
where [root] is where the project binaries are located.
</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Html_GcHtmlRenderer_IsDisposed" data-uid="GrapeCity.Documents.Html.GcHtmlRenderer.IsDisposed">
          <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.IsDisposed.html#GrapeCity_Documents_Html_GcHtmlRenderer_IsDisposed">IsDisposed</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.html">GcHtmlRenderer</a> has been disposed of.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Html_GcHtmlRenderer_IsSupported" data-uid="GrapeCity.Documents.Html.GcHtmlRenderer.IsSupported">
          <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.IsSupported.html#GrapeCity_Documents_Html_GcHtmlRenderer_IsSupported">IsSupported</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating if <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.html">GcHtmlRenderer</a> is available on the current platform.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Html_GcHtmlRenderer_PathToGcHtmlToPdf" data-uid="GrapeCity.Documents.Html.GcHtmlRenderer.PathToGcHtmlToPdf">
          <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.PathToGcHtmlToPdf.html#GrapeCity_Documents_Html_GcHtmlRenderer_PathToGcHtmlToPdf">PathToGcHtmlToPdf</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the optional path to Chrome, Edge, or Chromium executable to run.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Html_GcHtmlRenderer_ProxyServer" data-uid="GrapeCity.Documents.Html.GcHtmlRenderer.ProxyServer">
          <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.ProxyServer.html#GrapeCity_Documents_Html_GcHtmlRenderer_ProxyServer">ProxyServer</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a proxy server, overrides system settings. Affects HTTP and HTTPS requests only.</p>
<p>
For example: "https://proxy-ip:proxy-port" or "socks5://127.0.0.1:1080".
</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Html_GcHtmlRenderer_VirtualTimeBudget" data-uid="GrapeCity.Documents.Html.GcHtmlRenderer.VirtualTimeBudget">
          <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.VirtualTimeBudget.html#GrapeCity_Documents_Html_GcHtmlRenderer_VirtualTimeBudget">VirtualTimeBudget</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the number of milliseconds to wait before deeming the page to be ready.</p>
<p>Setting this property to a value greater than 0, activates <a class="xref" href="GrapeCity.Documents.Html.PageOptions.LoadLazyImages.html#GrapeCity_Documents_Html_PageOptions_LoadLazyImages">LoadLazyImages</a> mode.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Html_GcHtmlRenderer_WaitDuration" data-uid="GrapeCity.Documents.Html.GcHtmlRenderer.WaitDuration">
          <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.WaitDuration.html#GrapeCity_Documents_Html_GcHtmlRenderer_WaitDuration">WaitDuration</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the maximum navigation time, in milliseconds.</p>
<p>Defaults to 180000 ms.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Html_GcHtmlRenderer_WebSocketFactory" data-uid="GrapeCity.Documents.Html.GcHtmlRenderer.WebSocketFactory">
          <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.WebSocketFactory.html#GrapeCity_Documents_Html_GcHtmlRenderer_WebSocketFactory">WebSocketFactory</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the optional factory for <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.net.websockets.websocket">WebSocket</a> implementations.</p>
<p>
For more information, see comments to <a class="xref" href="GrapeCity.Documents.Html.LaunchOptions.WebSocketFactory.html#GrapeCity_Documents_Html_LaunchOptions_WebSocketFactory">WebSocketFactory</a>.
</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Html_GcHtmlRenderer_ApplyGcImagingLicenseKey_System_String_" data-uid="GrapeCity.Documents.Html.GcHtmlRenderer.ApplyGcImagingLicenseKey(System.String)">
          <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.ApplyGcImagingLicenseKey.html#GrapeCity_Documents_Html_GcHtmlRenderer_ApplyGcImagingLicenseKey_System_String_">ApplyGcImagingLicenseKey(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Applies a GcImaging license key to use by the current instance of <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.html">GcHtmlRenderer</a>.</p>
<p>Up to five images can be created without a license.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Html_GcHtmlRenderer_ApplyGcPdfLicenseKey_System_String_" data-uid="GrapeCity.Documents.Html.GcHtmlRenderer.ApplyGcPdfLicenseKey(System.String)">
          <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.ApplyGcPdfLicenseKey.html#GrapeCity_Documents_Html_GcHtmlRenderer_ApplyGcPdfLicenseKey_System_String_">ApplyGcPdfLicenseKey(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Applies a GcPdf license key to use by the current instance of <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.html">GcHtmlRenderer</a>.</p>
<p>Up to five PDFs can be created without a license.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Html_GcHtmlRenderer_Dispose" data-uid="GrapeCity.Documents.Html.GcHtmlRenderer.Dispose">
          <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.Dispose.html#GrapeCity_Documents_Html_GcHtmlRenderer_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"><p>Clean up any resources being used.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Html_GcHtmlRenderer_Dispose_System_Boolean_" data-uid="GrapeCity.Documents.Html.GcHtmlRenderer.Dispose(System.Boolean)">
          <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.Dispose.html#GrapeCity_Documents_Html_GcHtmlRenderer_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs cleanup operations on managed and unmanaged resources.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Html_GcHtmlRenderer_RenderToGcBitmap_GrapeCity_Documents_Imaging_GcBitmap_GrapeCity_Documents_Drawing_HtmlToImageFormat_" data-uid="GrapeCity.Documents.Html.GcHtmlRenderer.RenderToGcBitmap(GrapeCity.Documents.Imaging.GcBitmap,GrapeCity.Documents.Drawing.HtmlToImageFormat)">
          <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.RenderToGcBitmap.html#GrapeCity_Documents_Html_GcHtmlRenderer_RenderToGcBitmap_GrapeCity_Documents_Imaging_GcBitmap_GrapeCity_Documents_Drawing_HtmlToImageFormat_">RenderToGcBitmap(GcBitmap, HtmlToImageFormat)</a>
        </td>
        <td class="markdown level1 summary"><p>Renders the source HTML to an existing <a class="xref" href="../DS.Documents.Imaging/GrapeCity.Documents.Imaging.GcBitmap.html">GcBitmap</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Html_GcHtmlRenderer_RenderToJpeg_System_IO_Stream_GrapeCity_Documents_Html_JpegSettings_" data-uid="GrapeCity.Documents.Html.GcHtmlRenderer.RenderToJpeg(System.IO.Stream,GrapeCity.Documents.Html.JpegSettings)">
          <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.RenderToJpeg.html#GrapeCity_Documents_Html_GcHtmlRenderer_RenderToJpeg_System_IO_Stream_GrapeCity_Documents_Html_JpegSettings_">RenderToJpeg(Stream, JpegSettings)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a JPEG image from the source HTML and saves it to a specified stream.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Html_GcHtmlRenderer_RenderToJpeg_System_String_GrapeCity_Documents_Html_JpegSettings_" data-uid="GrapeCity.Documents.Html.GcHtmlRenderer.RenderToJpeg(System.String,GrapeCity.Documents.Html.JpegSettings)">
          <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.RenderToJpeg.html#GrapeCity_Documents_Html_GcHtmlRenderer_RenderToJpeg_System_String_GrapeCity_Documents_Html_JpegSettings_">RenderToJpeg(string, JpegSettings)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a JPEG image file from the source HTML.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Html_GcHtmlRenderer_RenderToPdf_System_IO_Stream_GrapeCity_Documents_Html_PdfSettings_" data-uid="GrapeCity.Documents.Html.GcHtmlRenderer.RenderToPdf(System.IO.Stream,GrapeCity.Documents.Html.PdfSettings)">
          <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.RenderToPdf.html#GrapeCity_Documents_Html_GcHtmlRenderer_RenderToPdf_System_IO_Stream_GrapeCity_Documents_Html_PdfSettings_">RenderToPdf(Stream, PdfSettings)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a PDF document from the source HTML and saves it to a specified stream.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Html_GcHtmlRenderer_RenderToPdf_System_String_GrapeCity_Documents_Html_PdfSettings_" data-uid="GrapeCity.Documents.Html.GcHtmlRenderer.RenderToPdf(System.String,GrapeCity.Documents.Html.PdfSettings)">
          <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.RenderToPdf.html#GrapeCity_Documents_Html_GcHtmlRenderer_RenderToPdf_System_String_GrapeCity_Documents_Html_PdfSettings_">RenderToPdf(string, PdfSettings)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a PDF file from the source HTML.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Html_GcHtmlRenderer_RenderToPng_System_IO_Stream_GrapeCity_Documents_Html_PngSettings_" data-uid="GrapeCity.Documents.Html.GcHtmlRenderer.RenderToPng(System.IO.Stream,GrapeCity.Documents.Html.PngSettings)">
          <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.RenderToPng.html#GrapeCity_Documents_Html_GcHtmlRenderer_RenderToPng_System_IO_Stream_GrapeCity_Documents_Html_PngSettings_">RenderToPng(Stream, PngSettings)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a PNG image from the source HTML and saves it to a specified stream.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Html_GcHtmlRenderer_RenderToPng_System_String_GrapeCity_Documents_Html_PngSettings_" data-uid="GrapeCity.Documents.Html.GcHtmlRenderer.RenderToPng(System.String,GrapeCity.Documents.Html.PngSettings)">
          <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.RenderToPng.html#GrapeCity_Documents_Html_GcHtmlRenderer_RenderToPng_System_String_GrapeCity_Documents_Html_PngSettings_">RenderToPng(string, PngSettings)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a PNG image file from the source HTML.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Html_GcHtmlRenderer_SetGcImagingLicenseKey_System_String_" data-uid="GrapeCity.Documents.Html.GcHtmlRenderer.SetGcImagingLicenseKey(System.String)">
          <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.SetGcImagingLicenseKey.html#GrapeCity_Documents_Html_GcHtmlRenderer_SetGcImagingLicenseKey_System_String_">SetGcImagingLicenseKey(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets a GcImaging license key to use by all instances of <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.html">GcHtmlRenderer</a>.</p>
<p>Up to five images can be created without a license.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Html_GcHtmlRenderer_SetGcPdfLicenseKey_System_String_" data-uid="GrapeCity.Documents.Html.GcHtmlRenderer.SetGcPdfLicenseKey(System.String)">
          <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.SetGcPdfLicenseKey.html#GrapeCity_Documents_Html_GcHtmlRenderer_SetGcPdfLicenseKey_System_String_">SetGcPdfLicenseKey(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets a GcPdf license key to use by all instances of <a class="xref" href="GrapeCity.Documents.Html.GcHtmlRenderer.html">GcHtmlRenderer</a>.</p>
<p>Up to five PDFs can be created without a license.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
