Document Solutions for PDF
GrapeCity.Documents.Html / GrapeCity.Documents.Pdf Namespace / GcPdfGraphicsExt Class / DrawHtml Method / DrawHtml(GcPdfGraphics,GcHtmlBrowser,Uri,Single,Single,HtmlToPdfFormat,SizeF,Boolean) Method
The target GcPdfGraphics object.
An instance of GrapeCity.Documents.Html.GcHtmlBrowser object.
The URI specifying the source HTML page.
The x-coordinate at which to draw the HTML block.
The y-coordinate at which to draw the HTML block.
The formatting attributes.
OUT: the size of the rendered HTML block.
Whether to scroll the page down to the end to force pending images to load.

In This Topic
    DrawHtml(GcPdfGraphics,GcHtmlBrowser,Uri,Single,Single,HtmlToPdfFormat,SizeF,Boolean) Method
    In This Topic
    Draws an HTML page provided by an URI on this GcPdfGraphics at a specified position.
    Syntax
    'Declaration
     
    Public Overloads Shared Function DrawHtml( _
       ByVal graphics As GcPdfGraphics, _
       ByVal browser As GcHtmlBrowser, _
       ByVal htmlUri As System.Uri, _
       ByVal x As System.Single, _
       ByVal y As System.Single, _
       ByVal format As HtmlToPdfFormat, _
       ByRef size As System.Drawing.SizeF, _
       Optional ByVal loadLazyImages As System.Boolean _
    ) As System.Boolean
    public static System.bool DrawHtml( 
       GcPdfGraphics graphics,
       GcHtmlBrowser browser,
       System.Uri htmlUri,
       System.float x,
       System.float y,
       HtmlToPdfFormat format,
       out System.Drawing.SizeF size,
       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.
    x
    The x-coordinate at which to draw the HTML block.
    y
    The y-coordinate at which to draw the HTML block.
    format
    The formatting attributes.
    size
    OUT: the size of the rendered HTML block.
    loadLazyImages
    Whether to scroll the page down to the end to force pending images to load.

    Return Value

    True if the drawn block is not empty, false otherwise.
    See Also