Document Solutions for PDF
DS.Documents.Html Assembly / GrapeCity.Documents.Pdf Namespace / GcPdfGraphicsExt Class / MeasureHtml Method / MeasureHtml(GcPdfGraphics,Uri,HtmlToPdfFormat,Int32,String,String) Method
The target GcPdfGraphics object.
The URI specifying the source HTML page.
The formatting attributes.
The number of milliseconds to wait before deeming the page to be ready.
A whitelist for Negotiate Auth servers, such as "*example.com".
A proxy server, such as "https://proxy-ip:proxy-port".

In This Topic
    MeasureHtml(GcPdfGraphics,Uri,HtmlToPdfFormat,Int32,String,String) Method
    In This Topic
    Measures an HTML page provided by an URI for rendering on this GcPdfGraphics.
    Syntax
    'Declaration
     
    Public Overloads Shared Function MeasureHtml( _
       ByVal graphics As GcPdfGraphics, _
       ByVal htmlUri As System.Uri, _
       ByVal format As HtmlToPdfFormat, _
       Optional ByVal virtualTimeBudget As System.Integer, _
       Optional ByVal authServerWhitelist As System.String, _
       Optional ByVal proxyServer As System.String _
    ) As System.Drawing.SizeF
    public static System.Drawing.SizeF MeasureHtml( 
       GcPdfGraphics graphics,
       System.Uri htmlUri,
       HtmlToPdfFormat format,
       System.int virtualTimeBudget,
       System.string authServerWhitelist,
       System.string proxyServer
    )

    Parameters

    graphics
    The target GcPdfGraphics object.
    htmlUri
    The URI specifying the source HTML page.
    format
    The formatting attributes.
    virtualTimeBudget
    The number of milliseconds to wait before deeming the page to be ready.
    authServerWhitelist
    A whitelist for Negotiate Auth servers, such as "*example.com".
    proxyServer
    A proxy server, such as "https://proxy-ip:proxy-port".

    Return Value

    The size of the HTML block if rendered on this graphics.
    See Also