Click or drag to resize

HtmlToPdfClientconvertHtmlStringToFileAsync Method (String, String, String)

Convert the specified HTML string to PDF with an asynchronous call and writes the resulted PDF to a local file. 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 void convertHtmlStringToFileAsync(
	string htmlString,
	string baseUrl,
	string filePath
)

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.
filePath
Type: SystemString
Local file including path if necessary.
See Also