HtmlToImageConvertHtmlToFile Method
Converts a HTML string to an image file in a given format
Namespace: HiQPdfClientAssembly: HiQPdfClient.NetCore (in HiQPdfClient.NetCore.dll) Version: 16.0.0
public void ConvertHtmlToFile(
string html,
string baseUrl,
ImageFormats format,
string outImageFile
)
Public Sub ConvertHtmlToFile (
html As String,
baseUrl As String,
format As ImageFormats,
outImageFile As String
)
public:
void ConvertHtmlToFile(
String^ html,
String^ baseUrl,
ImageFormats format,
String^ outImageFile
)
member ConvertHtmlToFile :
html : string *
baseUrl : string *
format : ImageFormats *
outImageFile : string -> unit
Parameters
- html String
- The HTML code to convert
- baseUrl String
- The base URL that can be used to resolve the relative URLs found in the HTML code
It can be null if there are not relative URLs in the HTML code
- format ImageFormats
- The image format
- outImageFile String
- The full path of the output image file