HtmlToImageConverterConvertUrl Method

Converts an URL to image and returns the rendered image into a memory buffer. A new instance of HtmlToImageConverter must be created for each call to this method

Definition

Namespace: Winnovative.Pdf.Chromium
Assembly: Winnovative.Pdf.Chromium (in Winnovative.Pdf.Chromium.dll) Version: 19.0.0
C#
public byte[] ConvertUrl(
	string url,
	ImageType format
)

Parameters

url  String
The URL of the HTML document to convert to image. 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

Return Value

Byte
A memory buffer containing the the generated image

See Also