|
HtmlToImageConvertHtmlString Method (String, String) |
Gets an Image object from the specified html string.
Namespace:
SelectPdf
Assembly:
Select.Pdf (in Select.Pdf.dll) Version: 24.1
Syntax public Image ConvertHtmlString(
string htmlString,
string baseUrl
)
Public Function ConvertHtmlString (
htmlString As String,
baseUrl As String
) As Image
Parameters
- htmlString
- Type: SystemString
The html string to be converted to image. - baseUrl
- Type: SystemString
This parameter allows the converter to resolve relative urls. Basically, baseUrl + relative image/css url = full absolute url.
Return Value
Type:
ImageThe rendered Image object.
Remarks
The
baseUrl parameter allows the converter to determine the full absolute urls from relative urls for images and css files appearing in the html string.
The Image object can be further manipulated to have the format changed, saved to disk, etc.
See Also