HtmlToImageConvertHtmlToMemory Method

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

Definition

Namespace: HiQPdf
Assembly: HiQPdf.NetCore (in HiQPdf.NetCore.dll) Version: 16.0.0
C#
public byte[] ConvertHtmlToMemory(
	string html,
	string baseUrl
)

Parameters

html  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

Return Value

Byte
The image in PNG format

See Also