Converts a HTML string to an image file in a given format
Namespace: HiQPdfClient
Assembly: HiQPdfClient.NetCore (in HiQPdfClient.NetCore.dll) Version: 15.0.0
Syntax
public void ConvertHtmlToFile( string html, string baseUrl, ImageFormats format, string outImageFile )
Parameters
- html
- Type: SystemString
The HTML code to convert - baseUrl
- Type: SystemString
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
- Type: HiQPdfClientImageFormats
The image format - outImageFile
- Type: SystemString
The full path of the output image file
See Also