Click or drag to resize

HtmlToPdfClientconvertHtmlStringToStreamAsync Method (String, String, Stream)

Convert the specified HTML string to PDF with an asynchronous call and writes the resulted PDF to an output stream. 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 convertHtmlStringToStreamAsync(
	string htmlString,
	string baseUrl,
	Stream stream
)

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.
stream
Type: System.IOStream
The output stream where the resulted PDF will be written.
See Also