Class Converter

Class Converter

Namespace: Aspose.Svg.Converters
Assembly: Aspose.SVG.dll (25.5.0)

Shared facade only for most often conversion scenarios. It provides a wide range of conversions to the popular formats, such as PDF, XPS, image formats, etc. More specific conversion (rendering, saving) user cases are presented by well known and documented low level API functions.

[ComVisible(true)]
public static class Converter

Inheritance

object Converter

Inherited Members

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Methods

ConvertImageToSVG(ImageVectorizerConfiguration, string, string)

Converts a raster image located on disk to SVG format.

public static void ConvertImageToSVG(ImageVectorizerConfiguration configuration, string imageFile, string outputPath)

Parameters

configuration ImageVectorizerConfiguration

The Aspose.Svg.ImageVectorization.ImageVectorizerConfiguration that controls tracing parameters.

imageFile string

Path to the source image file.

outputPath string

Destination path for the generated SVG.

ConvertImageToSVG(ImageVectorizerConfiguration, Stream, string)

Converts a raster image provided as a System.IO.Stream to SVG format.

public static void ConvertImageToSVG(ImageVectorizerConfiguration configuration, Stream imageStream, string outputPath)

Parameters

configuration ImageVectorizerConfiguration

The Aspose.Svg.ImageVectorization.ImageVectorizerConfiguration that controls tracing parameters.

imageStream Stream

Readable stream that contains the source image.

outputPath string

Destination path for the generated SVG.

ConvertSVG(SVGDocument, XpsSaveOptions, string)

Convert svg document to xps.Result is xps file.

public static void ConvertSVG(SVGDocument source, XpsSaveOptions options, string outputPath)

Parameters

source SVGDocument

Conversion source.

options XpsSaveOptions

Conversion options.

outputPath string

Output file path.

ConvertSVG(Url, XpsSaveOptions, string)

Convert svg source to xps. Result is xps file.

public static void ConvertSVG(Url url, XpsSaveOptions options, string outputPath)

Parameters

url Url

Source document URL.

options XpsSaveOptions

Conversion options.

outputPath string

Output file path.

ConvertSVG(Url, Configuration, XpsSaveOptions, string)

Convert svg source to xps. Result is xps file.

public static void ConvertSVG(Url url, Configuration configuration, XpsSaveOptions options, string outputPath)

Parameters

url Url

Source document URL.

configuration Configuration

The environment configuration.

options XpsSaveOptions

Conversion options.

outputPath string

Output file path.

ConvertSVG(string, XpsSaveOptions, string)

Convert svg source to xps. Result is xps file.

public static void ConvertSVG(string sourcePath, XpsSaveOptions options, string outputPath)

Parameters

sourcePath string

Svg file source path. It will be combined with the current directory path to form an absolute URL.

options XpsSaveOptions

Conversion options.

outputPath string

Output file path.

ConvertSVG(string, Configuration, XpsSaveOptions, string)

Convert svg source to xps. Result is xps file.

public static void ConvertSVG(string sourcePath, Configuration configuration, XpsSaveOptions options, string outputPath)

Parameters

sourcePath string

Svg file source path. It will be combined with the current directory path to form an absolute URL.

configuration Configuration

The environment configuration.

options XpsSaveOptions

Conversion options.

outputPath string

Output file path.

ConvertSVG(string, string, XpsSaveOptions, string)

Convert svg source to xps. Result is xps file.

public static void ConvertSVG(string content, string baseUri, XpsSaveOptions options, string outputPath)

Parameters

content string

Inline string svg content.

baseUri string

The base URI of the document. It will be combined with the current directory path to form an absolute URL.

options XpsSaveOptions

Conversion options.

outputPath string

Output file path.

ConvertSVG(string, string, Configuration, XpsSaveOptions, string)

Convert svg source to xps. Result is xps file.

public static void ConvertSVG(string content, string baseUri, Configuration configuration, XpsSaveOptions options, string outputPath)

Parameters

content string

Inline string svg content.

baseUri string

The base URI of the document. It will be combined with the current directory path to form an absolute URL.

configuration Configuration

The environment configuration.

options XpsSaveOptions

Conversion options.

outputPath string

Output file path.

ConvertSVG(SVGDocument, XpsSaveOptions, ICreateStreamProvider)

Convert svg source to xps. Result is xps file.

public static void ConvertSVG(SVGDocument document, XpsSaveOptions options, ICreateStreamProvider provider)

Parameters

document SVGDocument

Conversion source.

options XpsSaveOptions

Conversion options.

provider ICreateStreamProvider

Implementation of the Aspose.Svg.IO.ICreateStreamProvider interface, which will be used to get an output stream.

ConvertSVG(Url, XpsSaveOptions, ICreateStreamProvider)

Convert svg source to xps. Result is xps file.

public static void ConvertSVG(Url url, XpsSaveOptions options, ICreateStreamProvider provider)

Parameters

url Url

The document URL.

options XpsSaveOptions

Conversion options.

provider ICreateStreamProvider

Implementation of the Aspose.Svg.IO.ICreateStreamProvider interface, which will be used to get an output stream.

ConvertSVG(Url, Configuration, XpsSaveOptions, ICreateStreamProvider)

Convert svg source to xps. Result is xps file.

public static void ConvertSVG(Url url, Configuration configuration, XpsSaveOptions options, ICreateStreamProvider provider)

Parameters

url Url

The document URL.

configuration Configuration

The environment configuration.

options XpsSaveOptions

Conversion options.

provider ICreateStreamProvider

Implementation of the Aspose.Svg.IO.ICreateStreamProvider interface, which will be used to get an output stream.

ConvertSVG(string, XpsSaveOptions, ICreateStreamProvider)

Convert svg source to xps. Result is xps file.

public static void ConvertSVG(string sourcePath, XpsSaveOptions options, ICreateStreamProvider provider)

Parameters

sourcePath string

Svg file source path. It will be combined with the current directory path to form an absolute URL.

options XpsSaveOptions

Conversion options.

provider ICreateStreamProvider

Implementation of the Aspose.Svg.IO.ICreateStreamProvider interface, which will be used to get an output stream.

ConvertSVG(string, Configuration, XpsSaveOptions, ICreateStreamProvider)

Convert svg source to xps. Result is xps file.

public static void ConvertSVG(string sourcePath, Configuration configuration, XpsSaveOptions options, ICreateStreamProvider provider)

Parameters

sourcePath string

Svg file source path. It will be combined with the current directory path to form an absolute URL.

configuration Configuration

The environment configuration.

options XpsSaveOptions

Conversion options.

provider ICreateStreamProvider

Implementation of the Aspose.Svg.IO.ICreateStreamProvider interface, which will be used to get an output stream.

ConvertSVG(string, string, XpsSaveOptions, ICreateStreamProvider)

Convert svg source to xps. Result is xps file.

public static void ConvertSVG(string content, string baseUri, XpsSaveOptions options, ICreateStreamProvider provider)

Parameters

content string

Inline string svg content.

baseUri string

The base URI of the document. It will be combined with the current directory path to form an absolute URL.

options XpsSaveOptions

Conversion options.

provider ICreateStreamProvider

Implementation of the Aspose.Svg.IO.ICreateStreamProvider interface, which will be used to get an output stream.

ConvertSVG(string, string, Configuration, XpsSaveOptions, ICreateStreamProvider)

Convert svg source to xps. Result is xps file.

public static void ConvertSVG(string content, string baseUri, Configuration configuration, XpsSaveOptions options, ICreateStreamProvider provider)

Parameters

content string

Inline string svg content.

baseUri string

The base URI of the document. It will be combined with the current directory path to form an absolute URL.

configuration Configuration

The environment configuration.

options XpsSaveOptions

Conversion options.

provider ICreateStreamProvider

Implementation of the Aspose.Svg.IO.ICreateStreamProvider interface, which will be used to get an output stream.

ConvertSVG(SVGDocument, PdfSaveOptions, string)

Convert svg source to pdf. Result is pdf file.

public static void ConvertSVG(SVGDocument source, PdfSaveOptions options, string outputPath)

Parameters

source SVGDocument

Conversion source.

options PdfSaveOptions

Conversion options.

outputPath string

Output file path.

ConvertSVG(Url, PdfSaveOptions, string)

Convert svg source to pdf. Result is pdf file.

public static void ConvertSVG(Url url, PdfSaveOptions options, string outputPath)

Parameters

url Url

The document URL.

options PdfSaveOptions

Conversion options.

outputPath string

Output file path.

ConvertSVG(Url, Configuration, PdfSaveOptions, string)

Convert svg source to pdf. Result is pdf file.

public static void ConvertSVG(Url url, Configuration configuration, PdfSaveOptions options, string outputPath)

Parameters

url Url

The document URL.

configuration Configuration

The environment configuration.

options PdfSaveOptions

Conversion options.

outputPath string

Output file path.

ConvertSVG(string, PdfSaveOptions, string)

Convert svg source to pdf. Result is pdf file.

public static void ConvertSVG(string sourcePath, PdfSaveOptions options, string outputPath)

Parameters

sourcePath string

Svg file source path. It will be combined with the current directory path to form an absolute URL.

options PdfSaveOptions

Conversion options.

outputPath string

Output file path.

ConvertSVG(string, Configuration, PdfSaveOptions, string)

Convert svg source to pdf. Result is pdf file.

public static void ConvertSVG(string sourcePath, Configuration configuration, PdfSaveOptions options, string outputPath)

Parameters

sourcePath string

Svg file source path. It will be combined with the current directory path to form an absolute URL.

configuration Configuration

The environment configuration.

options PdfSaveOptions

Conversion options.

outputPath string

Output file path.

ConvertSVG(string, string, PdfSaveOptions, string)

Convert svg source to pdf. Result is pdf file.

public static void ConvertSVG(string content, string baseUri, PdfSaveOptions options, string outputPath)

Parameters

content string

Inline string svg content.

baseUri string

The base URI of the document. It will be combined with the current directory path to form an absolute URL.

options PdfSaveOptions

Conversion options.

outputPath string

Output file path.

ConvertSVG(string, string, Configuration, PdfSaveOptions, string)

Convert svg source to pdf. Result is pdf file.

public static void ConvertSVG(string content, string baseUri, Configuration configuration, PdfSaveOptions options, string outputPath)

Parameters

content string

Inline string svg content.

baseUri string

The base URI of the document. It will be combined with the current directory path to form an absolute URL.

configuration Configuration

The environment configuration.

options PdfSaveOptions

Conversion options.

outputPath string

Output file path.

ConvertSVG(SVGDocument, PdfSaveOptions, ICreateStreamProvider)

Convert svg source to pdf. Result is pdf file.

public static void ConvertSVG(SVGDocument document, PdfSaveOptions options, ICreateStreamProvider provider)

Parameters

document SVGDocument

Conversion source.

options PdfSaveOptions

Conversion options.

provider ICreateStreamProvider

Implementation of the Aspose.Svg.IO.ICreateStreamProvider interface, which will be used to get an output stream.

ConvertSVG(Url, PdfSaveOptions, ICreateStreamProvider)

Convert svg source to pdf. Result is pdf file.

public static void ConvertSVG(Url url, PdfSaveOptions options, ICreateStreamProvider provider)

Parameters

url Url

The document URL.

options PdfSaveOptions

Conversion options.

provider ICreateStreamProvider

Implementation of the Aspose.Svg.IO.ICreateStreamProvider interface, which will be used to get an output stream.

ConvertSVG(Url, Configuration, PdfSaveOptions, ICreateStreamProvider)

Convert svg source to pdf. Result is pdf file.

public static void ConvertSVG(Url url, Configuration configuration, PdfSaveOptions options, ICreateStreamProvider provider)

Parameters

url Url

The document URL.

configuration Configuration

The environment configuration.

options PdfSaveOptions

Conversion options.

provider ICreateStreamProvider

Implementation of the Aspose.Svg.IO.ICreateStreamProvider interface, which will be used to get an output stream.

ConvertSVG(string, PdfSaveOptions, ICreateStreamProvider)

Convert svg source to pdf. Result is pdf file.

public static void ConvertSVG(string sourcePath, PdfSaveOptions options, ICreateStreamProvider provider)

Parameters

sourcePath string

Svg file source path. It will be combined with the current directory path to form an absolute URL.

options PdfSaveOptions

Conversion options.

provider ICreateStreamProvider

Implementation of the Aspose.Svg.IO.ICreateStreamProvider interface, which will be used to get an output stream.

ConvertSVG(string, Configuration, PdfSaveOptions, ICreateStreamProvider)

Convert svg source to pdf. Result is pdf file.

public static void ConvertSVG(string sourcePath, Configuration configuration, PdfSaveOptions options, ICreateStreamProvider provider)

Parameters

sourcePath string

Svg file source path. It will be combined with the current directory path to form an absolute URL.

configuration Configuration

The environment configuration.

options PdfSaveOptions

Conversion options.

provider ICreateStreamProvider

Implementation of the Aspose.Svg.IO.ICreateStreamProvider interface, which will be used to get an output stream.

ConvertSVG(string, string, PdfSaveOptions, ICreateStreamProvider)

Convert svg source to pdf. Result is pdf file.

public static void ConvertSVG(string content, string baseUri, PdfSaveOptions options, ICreateStreamProvider provider)

Parameters

content string

Source document content.

baseUri string

The base URI of the document. It will be combined with the current directory path to form an absolute URL.

options PdfSaveOptions

Conversion options.

provider ICreateStreamProvider

Implementation of the Aspose.Svg.IO.ICreateStreamProvider interface, which will be used to get an output stream.

ConvertSVG(string, string, Configuration, PdfSaveOptions, ICreateStreamProvider)

Convert svg source to pdf. Result is pdf file.

public static void ConvertSVG(string content, string baseUri, Configuration configuration, PdfSaveOptions options, ICreateStreamProvider provider)

Parameters

content string

Inline string svg content.

baseUri string

The base URI of the document. It will be combined with the current directory path to form an absolute URL.

configuration Configuration

The environment configuration.

options PdfSaveOptions

Conversion options.

provider ICreateStreamProvider

Implementation of the Aspose.Svg.IO.ICreateStreamProvider interface, which will be used to get an output stream.

ConvertSVG(SVGDocument, ImageSaveOptions, string)

Convert svg document to image. Result is image file.

public static void ConvertSVG(SVGDocument source, ImageSaveOptions options, string outputPath)

Parameters

source SVGDocument

Conversion source.

options ImageSaveOptions

Conversion options.

outputPath string

Output file path.

ConvertSVG(Url, ImageSaveOptions, string)

Convert svg document to image. Result is image file.

public static void ConvertSVG(Url url, ImageSaveOptions options, string outputPath)

Parameters

url Url

The document URL.

options ImageSaveOptions

Conversion options.

outputPath string

Output file path.

ConvertSVG(Url, Configuration, ImageSaveOptions, string)

Convert svg document to image. Result is image file.

public static void ConvertSVG(Url url, Configuration configuration, ImageSaveOptions options, string outputPath)

Parameters

url Url

The document URL.

configuration Configuration

The environment configuration.

options ImageSaveOptions

Conversion options.

outputPath string

Output file path.

ConvertSVG(string, ImageSaveOptions, string)

Convert svg document to image. Result is image file.

public static void ConvertSVG(string sourcePath, ImageSaveOptions options, string outputPath)

Parameters

sourcePath string

Svg file source path. It will be combined with the current directory path to form an absolute URL.

options ImageSaveOptions

Conversion options.

outputPath string

Output file path.

ConvertSVG(string, Configuration, ImageSaveOptions, string)

Convert svg document to image. Result is image file.

public static void ConvertSVG(string sourcePath, Configuration configuration, ImageSaveOptions options, string outputPath)

Parameters

sourcePath string

Svg file source path. It will be combined with the current directory path to form an absolute URL.

configuration Configuration

The environment configuration.

options ImageSaveOptions

Conversion options.

outputPath string

Output file path.

ConvertSVG(string, string, ImageSaveOptions, string)

Convert svg document to image. Result is image file.

public static void ConvertSVG(string content, string baseUri, ImageSaveOptions options, string outputPath)

Parameters

content string

Inline string svg content.

baseUri string

The base URI of the document. It will be combined with the current directory path to form an absolute URL.

options ImageSaveOptions

Conversion options.

outputPath string

Output file path.

ConvertSVG(string, string, Configuration, ImageSaveOptions, string)

Convert svg document to image. Result is image file.

public static void ConvertSVG(string content, string baseUri, Configuration configuration, ImageSaveOptions options, string outputPath)

Parameters

content string

Inline string svg content.

baseUri string

The base URI of the document. It will be combined with the current directory path to form an absolute URL.

configuration Configuration

The environment configuration.

options ImageSaveOptions

Conversion options.

outputPath string

Output file path.

ConvertSVG(SVGDocument, ImageSaveOptions, ICreateStreamProvider)

Convert svg source to image. Result is image file.

public static void ConvertSVG(SVGDocument document, ImageSaveOptions options, ICreateStreamProvider provider)

Parameters

document SVGDocument

Conversion source.

options ImageSaveOptions

Conversion options.

provider ICreateStreamProvider

Implementation of the Aspose.Svg.IO.ICreateStreamProvider interface, which will be used to get an output stream.

ConvertSVG(Url, ImageSaveOptions, ICreateStreamProvider)

Convert svg source to image. Result is image file.

public static void ConvertSVG(Url url, ImageSaveOptions options, ICreateStreamProvider provider)

Parameters

url Url

The document URL.

options ImageSaveOptions

Conversion options.

provider ICreateStreamProvider

Implementation of the Aspose.Svg.IO.ICreateStreamProvider interface, which will be used to get an output stream.

ConvertSVG(Url, Configuration, ImageSaveOptions, ICreateStreamProvider)

Convert svg source to image. Result is image file.

public static void ConvertSVG(Url url, Configuration configuration, ImageSaveOptions options, ICreateStreamProvider provider)

Parameters

url Url

The document URL.

configuration Configuration

The environment configuration.

options ImageSaveOptions

Conversion options.

provider ICreateStreamProvider

Implementation of the Aspose.Svg.IO.ICreateStreamProvider interface, which will be used to get an output stream.

ConvertSVG(string, ImageSaveOptions, ICreateStreamProvider)

Convert svg source to image. Result is image file.

public static void ConvertSVG(string sourcePath, ImageSaveOptions options, ICreateStreamProvider provider)

Parameters

sourcePath string

Svg file source path. It will be combined with the current directory path to form an absolute URL.

options ImageSaveOptions

Conversion options.

provider ICreateStreamProvider

Implementation of the Aspose.Svg.IO.ICreateStreamProvider interface, which will be used to get an output stream.

ConvertSVG(string, Configuration, ImageSaveOptions, ICreateStreamProvider)

Convert svg source to image. Result is image file.

public static void ConvertSVG(string sourcePath, Configuration configuration, ImageSaveOptions options, ICreateStreamProvider provider)

Parameters

sourcePath string

Svg file source path. It will be combined with the current directory path to form an absolute URL.

configuration Configuration

The environment configuration.

options ImageSaveOptions

Conversion options.

provider ICreateStreamProvider

Implementation of the Aspose.Svg.IO.ICreateStreamProvider interface, which will be used to get an output stream.

ConvertSVG(string, string, ImageSaveOptions, ICreateStreamProvider)

Convert svg source to image. Result is image file.

public static void ConvertSVG(string content, string baseUri, ImageSaveOptions options, ICreateStreamProvider provider)

Parameters

content string

Inline string svg content.

baseUri string

The base URI of the document. It will be combined with the current directory path to form an absolute URL.

options ImageSaveOptions

Conversion options.

provider ICreateStreamProvider

Implementation of the Aspose.Svg.IO.ICreateStreamProvider interface, which will be used to get an output stream.

ConvertSVG(string, string, Configuration, ImageSaveOptions, ICreateStreamProvider)

Convert svg source to image. Result is image file.

public static void ConvertSVG(string content, string baseUri, Configuration configuration, ImageSaveOptions options, ICreateStreamProvider provider)

Parameters

content string

Inline string svg content.

baseUri string

The base URI of the document. It will be combined with the current directory path to form an absolute URL.

configuration Configuration

The environment configuration.

options ImageSaveOptions

Conversion options.

provider ICreateStreamProvider

Implementation of the Aspose.Svg.IO.ICreateStreamProvider interface, which will be used to get an output stream.

 English