Document Solutions for PDF
GrapeCity.Documents.Html / GrapeCity.Documents.Pdf Namespace / GcPdfGraphicsExt Class / DrawHtml Method / DrawHtml(GcPdfGraphics,GcHtmlBrowser,String,Single,Single,HtmlToPdfFormat,SizeF,Boolean) Method
The target GcPdfGraphics object.
An instance of GrapeCity.Documents.Html.GcHtmlBrowser object.
The HTML string to draw.
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,String,Single,Single,HtmlToPdfFormat,SizeF,Boolean) Method
    In This Topic
    Draws an HTML string on this GcPdfGraphics at a specified position.
    Syntax
    'Declaration
     
    Public Overloads Shared Function DrawHtml( _
       ByVal graphics As GcPdfGraphics, _
       ByVal browser As GcHtmlBrowser, _
       ByVal html As System.String, _
       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.string html,
       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.
    html
    The HTML string to draw.
    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