Click or drag to resize
Pdf Library for .NET

HtmlToImageConvertHtmlStringAsync Method

Overload List
 NameDescription
Public methodCode exampleConvertHtmlStringAsync(String)Asynchronously converts the specified HTML string to an image in ImageFormat (PNG by default).
Public methodConvertHtmlStringAsync(String, String)Asynchronously converts the specified HTML string to an image in ImageFormat (PNG by default), resolving relative urls against the base url.
Public methodConvertHtmlStringAsync(String, CancellationToken)Asynchronously converts the specified HTML string to an image in ImageFormat (PNG by default), stopping when the specified token is cancelled.
Public methodConvertHtmlStringAsync(String, String, CancellationToken)Asynchronously converts the specified HTML string to an image in ImageFormat (PNG by default), resolving relative urls against the base url and stopping when the specified token is cancelled.
Top
See Also