HiQPdf Documentation

HtmlToImageConvertHtmlToMemory Method

HiQPdf Client for .NET Core
Converts a HTML code to an image in a given format using the base URL to resolve the external references found in HTML

Namespace:  HiQPdfClient
Assembly:  HiQPdfClient.NetCore (in HiQPdfClient.NetCore.dll) Version: 15.0.0
Syntax

public byte[] ConvertHtmlToMemory(
	string html,
	string baseUrl,
	ImageFormats format
)

Parameters

html
Type: SystemString
The HTML code to convert
baseUrl
Type: SystemString
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
Type: HiQPdfClientImageFormats
The image format

Return Value

Type: Byte
The image data in the given format
See Also

Reference