Click or drag to resize

HtmlToPdfClientconvertHtmlStringAsync Method (String, String)

Convert the specified HTML string to PDF with an asynchronous call. Use a base url to resolve relative paths to resources.

Namespace:  SelectPdf.Api
Assembly:  SelectPdf.Api (in SelectPdf.Api.dll) Version: 1.4.0
Syntax
public byte[] convertHtmlStringAsync(
	string htmlString,
	string baseUrl
)

Parameters

htmlString
Type: SystemString
HTML string with the content being converted.
baseUrl
Type: SystemString
Base url used to resolve relative paths to resources (css, images, javascript, etc). Must be a http:// or https:// publicly available url.

Return Value

Type: Byte
Byte array containing the resulted PDF.
See Also