[]
Measures an HTML string for rendering on this GrapeCity.Documents.Pdf.GcPdfGraphics
public static SizeF MeasureHtml(this GcPdfGraphics graphics, GcHtmlBrowser browser, string html, HtmlToPdfFormat format, bool loadLazyImages = false)
Public Shared Function MeasureHtml(graphics As GcPdfGraphics, browser As GcHtmlBrowser, html As String, format As HtmlToPdfFormat, Optional loadLazyImages As Boolean = False) As SizeF
Type | Name | Description |
---|---|---|
GcPdfGraphics | graphics | The target GrapeCity.Documents.Pdf.GcPdfGraphics object. |
GcHtmlBrowser | browser | An instance of GcHtmlBrowser object. |
string | html | The HTML string to draw. |
HtmlToPdfFormat | format | The formatting attributes. |
bool | loadLazyImages | Whether to scroll the page down to the end to force pending images to load. |
Type | Description |
---|---|
SizeF | The size of the HTML block if rendered on this graphics. |
Measures an HTML string for rendering on this GrapeCity.Documents.Pdf.GcPdfGraphics
[Obsolete("Use the MeasureHtml method override accepting GcHtmlBrowser as a parameter instead.")]
public static SizeF MeasureHtml(this GcPdfGraphics graphics, string html, HtmlToPdfFormat format, int virtualTimeBudget = 0, string authServerWhitelist = null, string proxyServer = null)
<Obsolete("Use the MeasureHtml method override accepting GcHtmlBrowser as a parameter instead.")>
Public Shared Function MeasureHtml(graphics As GcPdfGraphics, html As String, format As HtmlToPdfFormat, Optional virtualTimeBudget As Integer = 0, Optional authServerWhitelist As String = Nothing, Optional proxyServer As String = Nothing) As SizeF
Type | Name | Description |
---|---|---|
GcPdfGraphics | graphics | The target GrapeCity.Documents.Pdf.GcPdfGraphics object. |
string | html | The HTML string to draw. |
HtmlToPdfFormat | format | The formatting attributes. |
int | virtualTimeBudget | The number of milliseconds to wait before deeming the page to be ready. |
string | authServerWhitelist | A whitelist for Negotiate Auth servers, such as "*example.com". |
string | proxyServer | A proxy server, such as "https://proxy-ip:proxy-port". |
Type | Description |
---|---|
SizeF | The size of the HTML block if rendered on this graphics. |
Measures an HTML page provided by an URI for rendering on this GrapeCity.Documents.Pdf.GcPdfGraphics.
public static SizeF MeasureHtml(this GcPdfGraphics graphics, GcHtmlBrowser browser, Uri htmlUri, HtmlToPdfFormat format, bool loadLazyImages = false)
Public Shared Function MeasureHtml(graphics As GcPdfGraphics, browser As GcHtmlBrowser, htmlUri As Uri, format As HtmlToPdfFormat, Optional loadLazyImages As Boolean = False) As SizeF
Type | Name | Description |
---|---|---|
GcPdfGraphics | graphics | The target GrapeCity.Documents.Pdf.GcPdfGraphics object. |
GcHtmlBrowser | browser | An instance of GcHtmlBrowser object. |
Uri | htmlUri | The URI specifying the source HTML page. |
HtmlToPdfFormat | format | The formatting attributes. |
bool | loadLazyImages | Whether to scroll the page down to the end to force pending images to load. |
Type | Description |
---|---|
SizeF | The size of the HTML block if rendered on this graphics. |
Measures an HTML page provided by an URI for rendering on this GrapeCity.Documents.Pdf.GcPdfGraphics.
[Obsolete("Use the MeasureHtml method override accepting GcHtmlBrowser as a parameter instead.")]
public static SizeF MeasureHtml(this GcPdfGraphics graphics, Uri htmlUri, HtmlToPdfFormat format, int virtualTimeBudget = 0, string authServerWhitelist = null, string proxyServer = null)
<Obsolete("Use the MeasureHtml method override accepting GcHtmlBrowser as a parameter instead.")>
Public Shared Function MeasureHtml(graphics As GcPdfGraphics, htmlUri As Uri, format As HtmlToPdfFormat, Optional virtualTimeBudget As Integer = 0, Optional authServerWhitelist As String = Nothing, Optional proxyServer As String = Nothing) As SizeF
Type | Name | Description |
---|---|---|
GcPdfGraphics | graphics | The target GrapeCity.Documents.Pdf.GcPdfGraphics object. |
Uri | htmlUri | The URI specifying the source HTML page. |
HtmlToPdfFormat | format | The formatting attributes. |
int | virtualTimeBudget | The number of milliseconds to wait before deeming the page to be ready. |
string | authServerWhitelist | A whitelist for Negotiate Auth servers, such as "*example.com". |
string | proxyServer | A proxy server, such as "https://proxy-ip:proxy-port". |
Type | Description |
---|---|
SizeF | The size of the HTML block if rendered on this graphics. |