Document Solutions for PDF
DS.Documents.Html Assembly / GrapeCity.Documents.Pdf Namespace / GcPdfGraphicsExt Class / MeasureHtml Method / MeasureHtml(GcPdfGraphics,GcHtmlBrowser,Uri,HtmlToPdfFormat,Boolean) Method
The target GcPdfGraphics object.
An instance of GrapeCity.Documents.Html.GcHtmlBrowser object.
The URI specifying the source HTML page.
The formatting attributes.
Whether to scroll the page down to the end to force pending images to load.

In This Topic
    MeasureHtml(GcPdfGraphics,GcHtmlBrowser,Uri,HtmlToPdfFormat,Boolean) 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 browser As GcHtmlBrowser, _
       ByVal htmlUri As System.Uri, _
       ByVal format As HtmlToPdfFormat, _
       Optional ByVal loadLazyImages As System.Boolean _
    ) As System.Drawing.SizeF
    public static System.Drawing.SizeF MeasureHtml( 
       GcPdfGraphics graphics,
       GcHtmlBrowser browser,
       System.Uri htmlUri,
       HtmlToPdfFormat format,
       System.bool loadLazyImages
    )

    Parameters

    graphics
    The target GcPdfGraphics object.
    browser
    An instance of GrapeCity.Documents.Html.GcHtmlBrowser object.
    htmlUri
    The URI specifying the source HTML page.
    format
    The formatting attributes.
    loadLazyImages
    Whether to scroll the page down to the end to force pending images to load.

    Return Value

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