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
)
Public Function convertHtmlStringAsync (
htmlString As String,
baseUrl As String
) As Byte()
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:
ByteByte array containing the resulted PDF.
See Also