Converts the specified HTML string into a SVG document using a base URL to resolve the external resources and returns the rendered SVG document as an array of bytes. This method can be used to perform HTML to SVG conversion in internal memory.

Namespace: EvoPdf
Assembly: evohtmltopdf (in evohtmltopdf.dll) Version: 4.12.0.0

Syntax

C#
public byte[] GetSvgFromHtmlString(
	string html,
	string baseUrl
)
Visual Basic
Public Function GetSvgFromHtmlString ( 
	html As String,
	baseUrl As String
) As Byte()
Visual C++
public:
array<unsigned char>^ GetSvgFromHtmlString(
	String^ html, 
	String^ baseUrl
)

Parameters

html
Type: System..::..String
The HTML string to convert.
baseUrl
Type: System..::..String
This parameter allows the converter to determine the full URLs from relative URLs for images and CSS files appearing in the HTML string. If there are not relative URLs in the HTML code this parameter can be empty or null.

Return Value

Type: array<Byte>[]()[][]
The SVG document as a memory buffer.

See Also