HtmlToImageConverterConvertHtmlFile Method

Converts a HTML file to an image having the given format and returns the rendered image into a memory buffer

Definition

Namespace: Winnovative
Assembly: WnvHtmlToPdf_NetCore (in WnvHtmlToPdf_NetCore.dll) Version: 18.0.0
C#
public byte[] ConvertHtmlFile(
	string htmlFilePath,
	ImageFormat format
)

Parameters

htmlFilePath  String
The full path of the HTML file to convert to image
format  ImageFormat
The image format

Return Value

Byte
A memory buffer containing the the generated image

See Also