Click or drag to resize
Pdf Library for .NET

HtmlToImage Methods

The HtmlToImage type exposes the following members.

Methods
 NameDescription
Public methodCode exampleConvertHtmlString(String)Converts the specified HTML string to an image in ImageFormat (PNG by default).
Public methodConvertHtmlString(String, String)Converts the specified HTML string to an image in ImageFormat (PNG by default), resolving relative urls against the base url.
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.
Public methodCode exampleConvertUrlConverts the web page at the specified url to an image in ImageFormat (PNG by default).
Public methodCode exampleConvertUrlAsync(String)Asynchronously converts the web page at the specified url to an image in ImageFormat (PNG by default).
Public methodConvertUrlAsync(String, CancellationToken)Asynchronously converts the web page at the specified url to an image in ImageFormat (PNG by default), stopping when the specified token is cancelled.
Top
See Also