HtmlToImageConvertUrlToFile Method

Converts the HTML document from the given URL to an image file in requested format. A new instance of HtmlToImage must be created for each call to this method

Definition

Namespace: HiQPdf.Chromium
Assembly: HiQPdf.Chromium (in HiQPdf.Chromium.dll) Version: 17.5.0
C#
public void ConvertUrlToFile(
	string url,
	ImageType format,
	string outFile
)

Parameters

url  String
The URL of the document to convert. The full path of a HTML file in the local file system prefixed by file:// is accepted as an URL
format  ImageType
The image format
outFile  String
The output image file path

See Also