HtmlToImageConvertHtmlToFile Method

Converts a HTML code to an image in requested format using the base URL to resolve the external references found in HTML

Definition

Namespace: HiQPdf.Chromium
Assembly: HiQPdf.Chromium (in HiQPdf.Chromium.dll) Version: 16.4.0
C#
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
format  ImageType
The image format
outFile  String
The output image file path

See Also