Documents for Imaging .NET Edition | GCDocuments
GrapeCity.Documents.Html / GrapeCity.Documents.Pdf Namespace / GcPdfGraphicsExt Class / DrawHtml Method / DrawHtml(GcPdfGraphics,String,Single,Single,HtmlToPdfFormat,SizeF,Int32,String,String) Method
The target GrapeCity.Documents.Pdf.GcPdfGraphics 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.
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
    DrawHtml(GcPdfGraphics,String,Single,Single,HtmlToPdfFormat,SizeF,Int32,String,String) Method
    In This Topic
    Draws an HTML string on this GrapeCity.Documents.Pdf.GcPdfGraphics at a specified position.
    Syntax
    'Declaration
     
    Public Overloads Shared Function DrawHtml( _
       ByVal graphics As GcPdfGraphics, _
       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 virtualTimeBudget As System.Integer, _
       Optional ByVal authServerWhitelist As System.String, _
       Optional ByVal proxyServer As System.String _
    ) As System.Boolean
    public static System.bool DrawHtml( 
       GcPdfGraphics graphics,
       System.string html,
       System.float x,
       System.float y,
       HtmlToPdfFormat format,
       out System.Drawing.SizeF size,
       System.int virtualTimeBudget,
       System.string authServerWhitelist,
       System.string proxyServer
    )

    Parameters

    graphics
    The target GrapeCity.Documents.Pdf.GcPdfGraphics 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.
    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

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