Table of Contents

Class SvgConverter

Namespace
EvoPdf
Assembly
evohtmltopdf.dll

This class represents the HTML to SVG converter and offers the necessary properties and methods to convert HTML documents to SVG documents. This class is still present in the API to maintain the backward compatibility and it will be replaced by HtmlToSvgConverter class in the future versions

[ClassInterface(ClassInterfaceType.AutoDual)]
public class SvgConverter : HtmlToSvgConverter
Inheritance
SvgConverter
Inherited Members

Constructors

SvgConverter()

This constructor creates a HTML to SVG converter with default settings

public SvgConverter()

Methods

GetSvgFromHtmlString(string, string)

Converts a HTML string into a SVG document using a base URL. This method is still present in the API to maintain the backward compatibility and it will be replaced by ConvertHtml(string, string) method in the future versions

public byte[] GetSvgFromHtmlString(string html, string baseUrl)

Parameters

html string

The HTML string to convert

baseUrl string

The base URL

Returns

byte[]

The created SVG document bytes

GetSvgFromUrl(string)

Converts an URL to a SVG document. This method is still present in the API to maintain the backward compatibility and it will be replaced by ConvertUrl(string) method in the future versions

public byte[] GetSvgFromUrl(string url)

Parameters

url string

The URL to convert

Returns

byte[]

The created SVG document bytes