HtmlToImageConvertHtmlToFile Method
Converts a HTML code to an image in requested format using the base URL to resolve the external references found in HTML.
A new instance of HtmlToImage must be created for each call to this method
Namespace: HiQPdf.NextAssembly: HiQPdf.Next (in HiQPdf.Next.dll) Version: 18.84.0
public void ConvertHtmlToFile(
string htmlString,
string baseUrl,
ImageType format,
string outFile
)
Parameters
- htmlString 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.
To load local file system resources referenced with a file:// URL or an absolute disk path, set this to "file:///"
- format ImageType
- The image format
- outFile String
- The output image file path