Converter.ConvertSVG

Contents
[ ]

ConvertSVG(SVGDocument, XpsSaveOptions, ICreateStreamProvider)

Convert SVG source presented by SVGDocument. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertSVG(SVGDocument document, XpsSaveOptions options, 
    ICreateStreamProvider provider)
ParameterTypeDescription
documentSVGDocumentConversion source presented by SVGDocument.
optionsXpsSaveOptionsXpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
providerICreateStreamProviderImplementation of the interface, which will be used to get an output stream.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

XPS is a document storage and viewing format developed by Microsoft. An XPS file has a set of advantages that support security features, such as digital signatures to provide greater document security and more.

Refer to article where you find information on how to convert SVG to XPS using ConvertSVG() methods of the Converter class and how to apply XpsSaveOptions and ICreateStreamProvider parameters.

Convert SVG to XPS

Converter class offers multiple SVG specific conversions to XPS. To convert SVG to XPS, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new XpsSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an XPS result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to XPS Converter that converts SVG to XPS with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
... 
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "simple.svg");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default XpsSaveOptions object
      var options = new XpsSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Form SVG document as conversion source
      using (var document = new SVGDocument(sourcePath, new Configuration()))
      {
			// Initiate conversion process with default configuration
			Converter.ConvertSVG(document, options, sp);
      }

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(Url, XpsSaveOptions, ICreateStreamProvider)

Convert SVG source presented by URL. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertSVG(Url url, XpsSaveOptions options, ICreateStreamProvider provider)
ParameterTypeDescription
urlUrlSVG source document URL - provides an object representation of a universal identifier (URL).
optionsXpsSaveOptionsXpsSaveOptions object usage enables you to tune the rendering process.
providerICreateStreamProviderKnown (see FileCreateStreamProvider) or custom ICreateStreamProvider interface implementation.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

XPS is a document storage and viewing format developed by Microsoft. An XPS file has a set of advantages that support security features, such as digital signatures to provide greater document security and more.

Refer to article where you find information on how to convert SVG to XPS using ConvertSVG() methods of the Converter class and how to apply XpsSaveOptions and ICreateStreamProvider parameters.

Convert SVG to XPS

Converter class offers multiple SVG specific conversions to XPS. To convert SVG to XPS, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new XpsSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an XPS result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to XPS Converter that converts SVG to XPS with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
... 
      // Form source file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default XpsSaveOptions object
      var options = new XpsSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process
      Converter.ConvertSVG(sourceUrl, options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(Url, Configuration, XpsSaveOptions, ICreateStreamProvider)

Convert SVG source presented by URL. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertSVG(Url url, Configuration configuration, XpsSaveOptions options, 
    ICreateStreamProvider provider)
ParameterTypeDescription
urlUrlSVG source document URL - provides an object representation of a universal identifier (URL).
configurationConfigurationThe environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
optionsXpsSaveOptionsXpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
providerICreateStreamProviderKnown (see FileCreateStreamProvider) or custom ICreateStreamProvider interface implementation.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

XPS is a document storage and viewing format developed by Microsoft. An XPS file has a set of advantages that support security features, such as digital signatures to provide greater document security and more.

Refer to article where you find information on how to convert SVG to XPS using ConvertSVG() methods of the Converter class and how to apply XpsSaveOptions and ICreateStreamProvider parameters.

Convert SVG to XPS

Converter class offers multiple SVG specific conversions to XPS. To convert SVG to XPS, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new XpsSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an XPS result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to XPS Converter that converts SVG to XPS with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
... 
      // Form source file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default XpsSaveOptions object
      var options = new XpsSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process with default configuration
      Converter.ConvertSVG(sourceUrl, new Configuration(), options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(string, XpsSaveOptions, ICreateStreamProvider)

Convert SVG source presented by full file path to XPS. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertSVG(string sourcePath, XpsSaveOptions options, 
    ICreateStreamProvider provider)
ParameterTypeDescription
sourcePathStringSVG source full file path.
optionsXpsSaveOptionsXpsSaveOptions object usage enables you to tune the rendering process.
providerICreateStreamProviderImplementation of the interface, which will be used to get an output stream.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

XPS is a document storage and viewing format developed by Microsoft. An XPS file has a set of advantages that support security features, such as digital signatures to provide greater document security and more.

Refer to article where you find information on how to convert SVG to XPS using ConvertSVG() methods of the Converter class and how to apply XpsSaveOptions and ICreateStreamProvider parameters.

Convert SVG to XPS

Converter class offers multiple SVG specific conversions to XPS. To convert SVG to XPS, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new XpsSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an XPS result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to XPS Converter that converts SVG to XPS with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
... 
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "simple.svg");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default XpsSaveOptions object
      var options = new XpsSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process
      Converter.ConvertSVG(sourcePath, options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(string, Configuration, XpsSaveOptions, ICreateStreamProvider)

Convert SVG source presented by full file path to XPS. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertSVG(string sourcePath, Configuration configuration, 
    XpsSaveOptions options, ICreateStreamProvider provider)
ParameterTypeDescription
sourcePathStringSVG source full file path.
configurationConfigurationThe environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
optionsXpsSaveOptionsXpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
providerICreateStreamProviderImplementation of the interface, which will be used to get an output stream.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

XPS is a document storage and viewing format developed by Microsoft. An XPS file has a set of advantages that support security features, such as digital signatures to provide greater document security and more.

Refer to article where you find information on how to convert SVG to XPS using ConvertSVG() methods of the Converter class and how to apply XpsSaveOptions and ICreateStreamProvider parameters.

Convert SVG to XPS

Converter class offers multiple SVG specific conversions to XPS. To convert SVG to XPS, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new XpsSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an XPS result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to XPS Converter that converts SVG to XPS with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
... 
      var sourcePath = Path.Combine(InputFolder, "sample.svg");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default XpsSaveOptions object
      var options = new XpsSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process with default configuration
      Converter.ConvertSVG(sourcePath, new Configuration(), options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(string, string, XpsSaveOptions, ICreateStreamProvider)

Convert SVG source presented by inline content to XPS. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertSVG(string content, string baseUri, XpsSaveOptions options, 
    ICreateStreamProvider provider)
ParameterTypeDescription
contentStringString as inline svg content.
baseUriStringThe base URI of the document. It will be combined with the current directory path to form an absolute URL.
optionsXpsSaveOptionsXpsSaveOptions object usage enables you to tune the rendering process.
providerICreateStreamProviderImplementation of the interface, which will be used to get an output stream.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

XPS is a document storage and viewing format developed by Microsoft. An XPS file has a set of advantages that support security features, such as digital signatures to provide greater document security and more.

Refer to article where you find information on how to convert SVG to XPS using ConvertSVG() methods of the Converter class and how to apply XpsSaveOptions and ICreateStreamProvider parameters.

Convert SVG to XPS

Converter class offers multiple SVG specific conversions to XPS. To convert SVG to XPS, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new XpsSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an XPS result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to XPS Converter that converts SVG to XPS with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
... 
      var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
        <circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
        </svg>";

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Define default XpsSaveOptions object
      var options = new XpsSaveOptions();

      // Initiate conversion process
      Converter.ConvertSVG(content, string.Empty, options, sp);

*OutputFolder - user output file path.

See Also


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

Convert SVG source presented by inline content to XPS. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertSVG(string content, string baseUri, Configuration configuration, 
    XpsSaveOptions options, ICreateStreamProvider provider)
ParameterTypeDescription
contentStringString as inline svg content.
baseUriStringThe base URI of the document. It will be combined with the current directory path to form an absolute URL.
configurationConfigurationThe environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
optionsXpsSaveOptionsXpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
providerICreateStreamProviderKnown (see FileCreateStreamProvider) or custom ICreateStreamProvider interface implementation.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

XPS is a document storage and viewing format developed by Microsoft. An XPS file has a set of advantages that support security features, such as digital signatures to provide greater document security and more.

Refer to article where you find information on how to convert SVG to XPS using ConvertSVG() methods of the Converter class and how to apply XpsSaveOptions and ICreateStreamProvider parameters.

Convert SVG to XPS

Converter class offers multiple SVG specific conversions to XPS. To convert SVG to XPS, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new XpsSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an XPS result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to XPS Converter that converts SVG to XPS with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
... 
      var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
        <circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
        </svg>";

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Define default XpsSaveOptions object
      var options = new XpsSaveOptions();

      // Initiate conversion process with default configuration
      Converter.ConvertSVG(content, string.Empty, new Configuration(), options, sp);

*OutputFolder - user output file path.

See Also


ConvertSVG(SVGDocument, DocSaveOptions, string)

Convert SVG source presented by SVGDocument. Result is docx file formed by output file path.

public static void ConvertSVG(SVGDocument source, DocSaveOptions options, string outputPath)
ParameterTypeDescription
sourceSVGDocumentConversion source presented by SVGDocument.
optionsDocSaveOptionsDocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPathStringFull docx file path as output conversion result.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to DOCX using ConvertSVG() methods of the Converter class and how to apply DocSaveOptions and ICreateStreamProvider parameters.

Convert SVG to DOCX

Converter class offers multiple SVG specific conversions to DOCX. To convert SVG to DOCX, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new DocSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an DOCX result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to DOCX Converter that converts SVG to DOCX with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "simple.svg");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default DocSaveOptions object
      var options = new DocSaveOptions();

      // Form SVG document as conversion source
      using (var document = new SVGDocument(sourcePath, new Configuration()))
      {
        // Initiate conversion process with default configuration
        Converter.ConvertSVG(document, options, resultPath);
      }

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(Url, DocSaveOptions, string)

Convert SVG source presented by URL. Result is docx file formed by output file path.

public static void ConvertSVG(Url url, DocSaveOptions options, string outputPath)
ParameterTypeDescription
urlUrlSVG source document URL - provides an object representation of a universal identifier (URL).
optionsDocSaveOptionsDocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPathStringFull docx file path as output conversion result.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to DOCX using ConvertSVG() methods of the Converter class and how to apply DocSaveOptions and ICreateStreamProvider parameters.

Convert SVG to DOCX

Converter class offers multiple SVG specific conversions to DOCX. To convert SVG to DOCX, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source. Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer. Create a new DocSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an DOCX result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to DOCX Converter that converts SVG to DOCX with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Create Url based on input file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.docx");

      // Define default DocSaveOptions object
      var options = new DocSaveOptions();

      // Initiate conversion process
      Converter.ConvertSVG(sourceUrl, options, resultPath);





*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(Url, Configuration, DocSaveOptions, string)

Convert SVG source presented by URL. Result is docx file formed by output file path.

public static void ConvertSVG(Url url, Configuration configuration, DocSaveOptions options, 
    string outputPath)
ParameterTypeDescription
urlUrlSVG source document URL - provides an object representation of a universal identifier (URL).
configurationConfigurationThe environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
optionsDocSaveOptionsDocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPathStringFull docx file path as output conversion result.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to DOCX using ConvertSVG() methods of the Converter class and how to apply DocSaveOptions and ICreateStreamProvider parameters.

Convert SVG to DOCX

Converter class offers multiple SVG specific conversions to DOCX. To convert SVG to DOCX, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new DocSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an DOCX result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to DOCX Converter that converts SVG to DOCX with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Create Url based on input file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.docx");

      // Define default DocSaveOptions object
      var options = new DocSaveOptions();

      // Initiate conversion process with default configuration
      Converter.ConvertSVG(sourceUrl, new Configuration(), options, resultPath);





*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(string, DocSaveOptions, string)

Convert SVG source presented by full file path to DOCX. Result is docx file formed by output file path.

public static void ConvertSVG(string sourcePath, DocSaveOptions options, string outputPath)
ParameterTypeDescription
sourcePathStringSVG source full file path.
optionsDocSaveOptionsDocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPathStringFull docx file path as output conversion result.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to DOCX using ConvertSVG() methods of the Converter class and how to apply DocSaveOptions and ICreateStreamProvider parameters.

Convert SVG to DOCX

Converter class offers multiple SVG specific conversions to DOCX. To convert SVG to DOCX, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new DocSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an DOCX result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to DOCX Converter that converts SVG to DOCX with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.svg");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.docx");

      // Define default DocSaveOptions object
      var options = new DocSaveOptions();

      // Initiate conversion process
      Converter.ConvertSVG(sourcePath, options, resultPath);





*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(string, Configuration, DocSaveOptions, string)

Convert SVG source presented by full file path to DOCX. Result is docx file formed by output file path.

public static void ConvertSVG(string sourcePath, Configuration configuration, 
    DocSaveOptions options, string outputPath)
ParameterTypeDescription
sourcePathStringSVG source full file path.
configurationConfigurationThe environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
optionsDocSaveOptionsDocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPathStringFull docx file path as output conversion result.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to DOCX using ConvertSVG() methods of the Converter class and how to apply DocSaveOptions and ICreateStreamProvider parameters.

Convert SVG to DOCX

Converter class offers multiple SVG specific conversions to DOCX. To convert SVG to DOCX, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new DocSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an DOCX result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to DOCX Converter that converts SVG to DOCX with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.svg");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.docx");

      // Define default DocSaveOptions object
      var options = new DocSaveOptions();

      // Initiate conversion process with default configuration
      Converter.ConvertSVG(sourcePath, new Configuration(), options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(string, string, DocSaveOptions, string)

Convert SVG source presented by inline content. Result is docx file formed by output file path.

public static void ConvertSVG(string content, string baseUri, DocSaveOptions options, 
    string outputPath)
ParameterTypeDescription
contentStringString as inline svg content.
baseUriStringThe base URI of the document. It will be combined with the current directory path to form an absolute URL.
optionsDocSaveOptionsDocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPathStringFull docx file path as output conversion result.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to DOCX using ConvertSVG() methods of the Converter class and how to apply DocSaveOptions and ICreateStreamProvider parameters.

Convert SVG to DOCX

Converter class offers multiple SVG specific conversions to DOCX. To convert SVG to DOCX, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new DocSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an DOCX result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to DOCX Converter that converts SVG to DOCX with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form inline svg content
      var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
        <circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
        </svg>";

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.docx");

      // Define default DocSaveOptions object
      var options = new DocSaveOptions();

      // Initiate conversion process
      Converter.ConvertSVG(content, string.Empty, options, resultPath);

*OutputFolder - user output file path.

See Also


ConvertSVG(string, string, Configuration, DocSaveOptions, string)

Convert SVG source presented by inline content. Result is docx file formed by output file path.

public static void ConvertSVG(string content, string baseUri, Configuration configuration, 
    DocSaveOptions options, string outputPath)
ParameterTypeDescription
contentStringString as inline svg content.
baseUriStringThe base URI of the document. It will be combined with the current directory path to form an absolute URL.
configurationConfigurationThe environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
optionsDocSaveOptionsDocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPathStringFull docx file path as output conversion result.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to DOCX using ConvertSVG() methods of the Converter class and how to apply DocSaveOptions and ICreateStreamProvider parameters.

Convert SVG to DOCX

Converter class offers multiple SVG specific conversions to DOCX. To convert SVG to DOCX, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new DocSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an DOCX result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to DOCX Converter that converts SVG to DOCX with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form inline svg content
      var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
        <circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
        </svg>";

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.docx");

      // Define default DocSaveOptions object
      var options = new DocSaveOptions();

      // Initiate conversion process with default configuration
      Converter.ConvertSVG(content, string.Empty, new Configuration(), options, resultPath);

*OutputFolder - user output file path.

See Also


ConvertSVG(SVGDocument, DocSaveOptions, ICreateStreamProvider)

Convert SVG source presented by SVGDocument. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertSVG(SVGDocument document, DocSaveOptions options, 
    ICreateStreamProvider provider)
ParameterTypeDescription
documentSVGDocumentConversion source presented by SVGDocument.
optionsDocSaveOptionsDocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
providerICreateStreamProviderKnown (see FileCreateStreamProvider) or custom ICreateStreamProvider interface implementation.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to DOCX using ConvertSVG() methods of the Converter class and how to apply DocSaveOptions and ICreateStreamProvider parameters.

Convert SVG to DOCX

Converter class offers multiple SVG specific conversions to DOCX. To convert SVG to DOCX, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new DocSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an DOCX result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to DOCX Converter that converts SVG to DOCX with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "simple.svg");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default DocSaveOptions object
      var options = new DocSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Form SVG document as conversion source
      using (var document = new SVGDocument(sourcePath, new Configuration()))
      {
        // Initiate conversion process with default configuration
        Converter.ConvertSVG(document, options, sp);
      }

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(Url, DocSaveOptions, ICreateStreamProvider)

Convert SVG source presented by URL. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertSVG(Url url, DocSaveOptions options, ICreateStreamProvider provider)
ParameterTypeDescription
urlUrlSVG source document URL - provides an object representation of a universal identifier (URL).
optionsDocSaveOptionsDocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
providerICreateStreamProviderImplementation of the interface, which will be used to get an output stream.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to DOCX using ConvertSVG() methods of the Converter class and how to apply DocSaveOptions and ICreateStreamProvider parameters.

Convert SVG to DOCX

Converter class offers multiple SVG specific conversions to DOCX. To convert SVG to DOCX, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new DocSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an DOCX result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to DOCX Converter that converts SVG to DOCX with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Create Url based on input file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default DocSaveOptions object
      var options = new DocSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process
      Converter.ConvertSVG(sourceUrl, options, sp);





*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(Url, Configuration, DocSaveOptions, ICreateStreamProvider)

Convert SVG source presented by URL. Result is docx file formed by output file path.

public static void ConvertSVG(Url url, Configuration configuration, DocSaveOptions options, 
    ICreateStreamProvider provider)
ParameterTypeDescription
urlUrlSVG source document URL - provides an object representation of a universal identifier (URL).
configurationConfigurationThe environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
optionsDocSaveOptionsDocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
providerICreateStreamProviderKnown (see FileCreateStreamProvider) or custom ICreateStreamProvider interface implementation.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to DOCX using ConvertSVG() methods of the Converter class and how to apply DocSaveOptions and ICreateStreamProvider parameters.

Convert SVG to DOCX

Converter class offers multiple SVG specific conversions to DOCX. To convert SVG to DOCX, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new DocSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an DOCX result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to DOCX Converter that converts SVG to DOCX with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Create Url based on input file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default DocSaveOptions object
      var options = new DocSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process with default configuration
      Converter.ConvertSVG(sourceUrl, new Configuration(), options, sp);





*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(string, DocSaveOptions, ICreateStreamProvider)

Convert SVG source presented by full file path to DOCX. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertSVG(string sourcePath, DocSaveOptions options, 
    ICreateStreamProvider provider)
ParameterTypeDescription
sourcePathStringSVG source full file path.
optionsDocSaveOptionsDocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
providerICreateStreamProviderKnown (see FileCreateStreamProvider) or custom ICreateStreamProvider interface implementation.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to DOCX using ConvertSVG() methods of the Converter class and how to apply DocSaveOptions and ICreateStreamProvider parameters.

Convert SVG to DOCX

Converter class offers multiple SVG specific conversions to DOCX. To convert SVG to DOCX, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new DocSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an DOCX result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to DOCX Converter that converts SVG to DOCX with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.svg");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default DocSaveOptions object
      var options = new DocSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process
      Converter.ConvertSVG(sourcePath, options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(string, Configuration, DocSaveOptions, ICreateStreamProvider)

Convert SVG source presented by full file path to DOCX. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertSVG(string sourcePath, Configuration configuration, 
    DocSaveOptions options, ICreateStreamProvider provider)
ParameterTypeDescription
sourcePathStringSVG source full file path.
configurationConfigurationThe environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
optionsDocSaveOptionsDocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
providerICreateStreamProviderImplementation of the interface, which will be used to get an output stream.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to DOCX using ConvertSVG() methods of the Converter class and how to apply DocSaveOptions and ICreateStreamProvider parameters.

Convert SVG to DOCX

Converter class offers multiple SVG specific conversions to DOCX. To convert SVG to DOCX, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new DocSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an DOCX result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to DOCX Converter that converts SVG to DOCX with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.svg");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default DocSaveOptions object
      var options = new DocSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process with default configuration
      Converter.ConvertSVG(sourcePath, new Configuration(), options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(string, string, DocSaveOptions, ICreateStreamProvider)

Convert SVG source presented by inline content to DOCX. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertSVG(string content, string baseUri, DocSaveOptions options, 
    ICreateStreamProvider provider)
ParameterTypeDescription
contentStringString as inline svg content.
baseUriStringThe base URI of the document. It will be combined with the current directory path to form an absolute URL.
optionsDocSaveOptionsDocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
providerICreateStreamProviderImplementation of the interface, which will be used to get an output stream.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to DOCX using ConvertSVG() methods of the Converter class and how to apply DocSaveOptions and ICreateStreamProvider parameters.

Convert SVG to DOCX

Converter class offers multiple SVG specific conversions to DOCX. To convert SVG to DOCX, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new DocSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an DOCX result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to DOCX Converter that converts SVG to DOCX with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
        <circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
        </svg>";

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Define default DocSaveOptions object
      var options = new DocSaveOptions();

      // Initiate conversion process
      Converter.ConvertSVG(content, string.Empty, options, sp);

*OutputFolder - user output file path.

See Also


ConvertSVG(string, string, Configuration, DocSaveOptions, ICreateStreamProvider)

Convert SVG source presented by inline content to DOCX. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertSVG(string content, string baseUri, Configuration configuration, 
    DocSaveOptions options, ICreateStreamProvider provider)
ParameterTypeDescription
contentStringString as inline svg content.
baseUriStringThe base URI of the document. It will be combined with the current directory path to form an absolute URL.
configurationConfigurationThe environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
optionsDocSaveOptionsDocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
providerICreateStreamProviderImplementation of the interface, which will be used to get an output stream.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to DOCX using ConvertSVG() methods of the Converter class and how to apply DocSaveOptions and ICreateStreamProvider parameters.

Convert SVG to DOCX

Converter class offers multiple SVG specific conversions to DOCX. To convert SVG to DOCX, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new DocSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an DOCX result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to DOCX Converter that converts SVG to DOCX with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
        <circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
        </svg>";

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Define default DocSaveOptions object
      var options = new DocSaveOptions();

      // Initiate conversion process
      Converter.ConvertSVG(content, string.Empty, new Configuration(), options, sp);

*OutputFolder - user output file path.

See Also


ConvertSVG(SVGDocument, PdfSaveOptions, string)

Convert SVG source presented by SVGDocument to PDF. Result is pdf file formed by output file path.

public static void ConvertSVG(SVGDocument source, PdfSaveOptions options, string outputPath)
ParameterTypeDescription
sourceSVGDocumentConversion source presented by SVGDocument.
optionsPdfSaveOptionsPdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPathStringFull pdf file path as output conversion result.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to PDF using ConvertSVG() methods of the Converter class and how to apply PdfSaveOptions and ICreateStreamProvider parameters.

Convert SVG to PDF

Converter class offers multiple SVG specific conversions to PDF. To convert SVG to PDF, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new PdfSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an PDF result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to PDF Converter that converts SVG to PDF with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "simple.svg");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default PdfSaveOptions object
      var options = new PdfSaveOptions();

      // Form SVG document as conversion source
      using (var document = new SVGDocument(sourcePath, new Configuration()))
      {
        // Initiate conversion process with default configuration
        Converter.ConvertSVG(document, options, resultPath);
      }

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(Url, PdfSaveOptions, string)

Convert SVG source presented by URL. Result is pdf file formed by output file path.

public static void ConvertSVG(Url url, PdfSaveOptions options, string outputPath)
ParameterTypeDescription
urlUrlSVG source document URL - provides an object representation of a universal identifier (URL).
optionsPdfSaveOptionsPdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPathStringFull pdf file path as output conversion result.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to PDF using ConvertSVG() methods of the Converter class and how to apply PdfSaveOptions and ICreateStreamProvider parameters.

Convert SVG to PDF

Converter class offers multiple SVG specific conversions to PDF. To convert SVG to PDF, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new PdfSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an PDF result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to PDF Converter that converts SVG to PDF with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Create Url based on input file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.pdf");

      // Define default PdfSaveOptions object
      var options = new PdfSaveOptions();

      // Initiate conversion process
      Converter.ConvertSVG(sourceUrl, options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(Url, Configuration, PdfSaveOptions, string)

Convert SVG source presented by URL. Result is pdf file formed by output file path.

public static void ConvertSVG(Url url, Configuration configuration, PdfSaveOptions options, 
    string outputPath)
ParameterTypeDescription
urlUrlSVG source document URL - provides an object representation of a universal identifier (URL).
configurationConfigurationThe environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
optionsPdfSaveOptionsPdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPathStringFull pdf file path as output conversion result.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to PDF using ConvertSVG() methods of the Converter class and how to apply PdfSaveOptions and ICreateStreamProvider parameters.

Convert SVG to PDF

Converter class offers multiple SVG specific conversions to PDF. To convert SVG to PDF, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new PdfSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an PDF result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to PDF Converter that converts SVG to PDF with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Create Url based on input file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.pdf");

      // Define default PdfSaveOptions object
      var options = new PdfSaveOptions();

      // Initiate conversion process with default configuration
      Converter.ConvertSVG(sourceUrl, new Configuration(), options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(string, PdfSaveOptions, string)

Convert SVG source presented by full file path to PDF. Result is pdf file formed by output file path.

public static void ConvertSVG(string sourcePath, PdfSaveOptions options, string outputPath)
ParameterTypeDescription
sourcePathStringSVG source full file path.
optionsPdfSaveOptionsPdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPathStringFull pdf file path as output conversion result.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to PDF using ConvertSVG() methods of the Converter class and how to apply PdfSaveOptions and ICreateStreamProvider parameters.

Convert SVG to PDF

Converter class offers multiple SVG specific conversions to PDF. To convert SVG to PDF, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new PdfSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an PDF result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to PDF Converter that converts SVG to PDF with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.svg");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.pdf");

      // Define default PdfSaveOptions object
      var options = new PdfSaveOptions();

      // Initiate conversion process
      Converter.ConvertSVG(sourcePath, options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(string, Configuration, PdfSaveOptions, string)

Convert SVG source presented by full file path to PDF. Result is pdf file formed by output file path.

public static void ConvertSVG(string sourcePath, Configuration configuration, 
    PdfSaveOptions options, string outputPath)
ParameterTypeDescription
sourcePathStringSVG source full file path.
configurationConfigurationThe environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
optionsPdfSaveOptionsPdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPathStringFull pdf file path as output conversion result.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to PDF using ConvertSVG() methods of the Converter class and how to apply PdfSaveOptions and ICreateStreamProvider parameters.

Convert SVG to PDF

Converter class offers multiple SVG specific conversions to PDF. To convert SVG to PDF, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new PdfSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an PDF result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to PDF Converter that converts SVG to PDF with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.svg");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.pdf");

      // Define default PdfSaveOptions object
      var options = new PdfSaveOptions();

      // Initiate conversion process with default configuration
      Converter.ConvertSVG(sourcePath, new Configuration(), options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(string, string, PdfSaveOptions, string)

Convert SVG source presented by inline content to PDF. Result is pdf file formed by output file path.

public static void ConvertSVG(string content, string baseUri, PdfSaveOptions options, 
    string outputPath)
ParameterTypeDescription
contentStringString as inline svg content.
baseUriStringThe base URI of the document. It will be combined with the current directory path to form an absolute URL.
optionsPdfSaveOptionsPdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPathStringFull pdf file path as output conversion result.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to PDF using ConvertSVG() methods of the Converter class and how to apply PdfSaveOptions and ICreateStreamProvider parameters.

Convert SVG to PDF

Converter class offers multiple SVG specific conversions to PDF. To convert SVG to PDF, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new PdfSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an PDF result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to PDF Converter that converts SVG to PDF with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form inline svg content
      var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
        <circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
        </svg>";

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.pdf");

      // Define default PdfSaveOptions object
      var options = new PdfSaveOptions();

      // Initiate conversion process
      Converter.ConvertSVG(content, string.Empty, options, resultPath);

*OutputFolder - user output file path.

See Also


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

Convert SVG source presented by inline content to PDF. Result is pdf file formed by output file path.

public static void ConvertSVG(string content, string baseUri, Configuration configuration, 
    PdfSaveOptions options, string outputPath)
ParameterTypeDescription
contentStringString as inline svg content.
baseUriStringThe base URI of the document. It will be combined with the current directory path to form an absolute URL.
configurationConfigurationThe environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
optionsPdfSaveOptionsPdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPathStringFull pdf file path as output conversion result.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to PDF using ConvertSVG() methods of the Converter class and how to apply PdfSaveOptions and ICreateStreamProvider parameters.

Convert SVG to PDF

Converter class offers multiple SVG specific conversions to PDF. To convert SVG to PDF, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new PdfSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an PDF result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to PDF Converter that converts SVG to PDF with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form inline svg content
      var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
        <circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
        </svg>";

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.pdf");

      // Define default PdfSaveOptions object
      var options = new PdfSaveOptions();

      // Initiate conversion process with default configuration
      Converter.ConvertSVG(content, string.Empty, new Configuration(), options, resultPath);

*OutputFolder - user output file path.

See Also


ConvertSVG(SVGDocument, PdfSaveOptions, ICreateStreamProvider)

Convert SVG source presented by SVGDocument to PDF. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertSVG(SVGDocument document, PdfSaveOptions options, 
    ICreateStreamProvider provider)
ParameterTypeDescription
documentSVGDocumentConversion source presented by SVGDocument.
optionsPdfSaveOptionsPdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
providerICreateStreamProviderKnown (see FileCreateStreamProvider) or custom ICreateStreamProvider interface implementation.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to PDF using ConvertSVG() methods of the Converter class and how to apply PdfSaveOptions and ICreateStreamProvider parameters.

Convert SVG to PDF

Converter class offers multiple SVG specific conversions to PDF. To convert SVG to PDF, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new PdfSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an PDF result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to PDF Converter that converts SVG to PDF with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "simple.svg");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default PdfSaveOptions object
      var options = new PdfSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Form SVG document as conversion source
      using (var document = new SVGDocument(sourcePath, new Configuration()))
      {
        // Initiate conversion process with default configuration
        Converter.ConvertSVG(document, options, sp);
      }

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(Url, PdfSaveOptions, ICreateStreamProvider)

Convert SVG source presented by URL. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertSVG(Url url, PdfSaveOptions options, ICreateStreamProvider provider)
ParameterTypeDescription
urlUrlSVG source document URL - provides an object representation of a universal identifier (URL).
optionsPdfSaveOptionsPdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
providerICreateStreamProviderKnown (see FileCreateStreamProvider) or custom ICreateStreamProvider interface implementation.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to PDF using ConvertSVG() methods of the Converter class and how to apply PdfSaveOptions and ICreateStreamProvider parameters.

Convert SVG to PDF

Converter class offers multiple SVG specific conversions to PDF. To convert SVG to PDF, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new PdfSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an PDF result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to PDF Converter that converts SVG to PDF with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Create Url based on input file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default PdfSaveOptions object
      var options = new PdfSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process
      Converter.ConvertSVG(sourceUrl, options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(Url, Configuration, PdfSaveOptions, ICreateStreamProvider)

Convert SVG source presented by URL. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertSVG(Url url, Configuration configuration, PdfSaveOptions options, 
    ICreateStreamProvider provider)
ParameterTypeDescription
urlUrlSVG source document URL - provides an object representation of a universal identifier (URL).
configurationConfigurationThe environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
optionsPdfSaveOptionsPdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
providerICreateStreamProviderKnown (see FileCreateStreamProvider) or custom ICreateStreamProvider interface implementation.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to PDF using ConvertSVG() methods of the Converter class and how to apply PdfSaveOptions and ICreateStreamProvider parameters.

Convert SVG to PDF

Converter class offers multiple SVG specific conversions to PDF. To convert SVG to PDF, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new PdfSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an PDF result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to PDF Converter that converts SVG to PDF with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Create Url based on input file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default PdfSaveOptions object
      var options = new PdfSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process with default configuration
      Converter.ConvertSVG(sourceUrl, new Configuration(), options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(string, PdfSaveOptions, ICreateStreamProvider)

Convert SVG source presented by full file path to PDF. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertSVG(string sourcePath, PdfSaveOptions options, 
    ICreateStreamProvider provider)
ParameterTypeDescription
sourcePathStringSVG source full file path.
optionsPdfSaveOptionsPdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
providerICreateStreamProviderImplementation of the interface, which will be used to get an output stream.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to PDF using ConvertSVG() methods of the Converter class and how to apply PdfSaveOptions and ICreateStreamProvider parameters.

Convert SVG to PDF

Converter class offers multiple SVG specific conversions to PDF. To convert SVG to PDF, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new PdfSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an PDF result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to PDF Converter that converts SVG to PDF with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.svg");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default PdfSaveOptions object
      var options = new PdfSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process
      Converter.ConvertSVG(sourcePath, options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(string, Configuration, PdfSaveOptions, ICreateStreamProvider)

Convert SVG source presented by full file path to PDF. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertSVG(string sourcePath, Configuration configuration, 
    PdfSaveOptions options, ICreateStreamProvider provider)
ParameterTypeDescription
sourcePathStringSVG source full file path.
configurationConfigurationThe environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
optionsPdfSaveOptionsPdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
providerICreateStreamProviderImplementation of the interface, which will be used to get an output stream.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to PDF using ConvertSVG() methods of the Converter class and how to apply PdfSaveOptions and ICreateStreamProvider parameters.

Convert SVG to PDF

Converter class offers multiple SVG specific conversions to PDF. To convert SVG to PDF, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new PdfSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an PDF result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to PDF Converter that converts SVG to PDF with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.svg");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default PdfSaveOptions object
      var options = new PdfSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process with default configuration
      Converter.ConvertSVG(sourcePath, new Configuration(), options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(string, string, PdfSaveOptions, ICreateStreamProvider)

Convert SVG source presented by inline content to PDF. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertSVG(string content, string baseUri, PdfSaveOptions options, 
    ICreateStreamProvider provider)
ParameterTypeDescription
contentStringString as inline svg content.
baseUriStringThe base URI of the document. It will be combined with the current directory path to form an absolute URL.
optionsPdfSaveOptionsPdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
providerICreateStreamProviderImplementation of the interface, which will be used to get an output stream.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to PDF using ConvertSVG() methods of the Converter class and how to apply PdfSaveOptions and ICreateStreamProvider parameters.

Convert SVG to PDF

Converter class offers multiple SVG specific conversions to PDF. To convert SVG to PDF, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new PdfSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an PDF result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to PDF Converter that converts SVG to PDF with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
        <circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
        </svg>";

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Define default PdfSaveOptions object
      var options = new PdfSaveOptions();

      // Initiate conversion process
      Converter.ConvertSVG(content, string.Empty, options, sp);

*OutputFolder - user output file path.

See Also


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

Convert SVG source presented by inline content to PDF. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertSVG(string content, string baseUri, Configuration configuration, 
    PdfSaveOptions options, ICreateStreamProvider provider)
ParameterTypeDescription
contentStringString as inline svg content.
baseUriStringThe base URI of the document. It will be combined with the current directory path to form an absolute URL.
configurationConfigurationThe environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
optionsPdfSaveOptionsPdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
providerICreateStreamProviderKnown (see FileCreateStreamProvider) or custom ICreateStreamProvider interface implementation.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to PDF using ConvertSVG() methods of the Converter class and how to apply PdfSaveOptions and ICreateStreamProvider parameters.

Convert SVG to PDF

Converter class offers multiple SVG specific conversions to PDF. To convert SVG to PDF, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new PdfSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an PDF result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to PDF Converter that converts SVG to PDF with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
        <circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
        </svg>";

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Define default PdfSaveOptions object
      var options = new PdfSaveOptions();

      // Initiate conversion process
      Converter.ConvertSVG(content, string.Empty, new Configuration(), options, sp);

*OutputFolder - user output file path.

See Also


ConvertSVG(SVGDocument, ImageSaveOptions, string)

Convert SVG source presented by SVGDocument. Result is image file formed by output file path.

public static void ConvertSVG(SVGDocument source, ImageSaveOptions options, string outputPath)
ParameterTypeDescription
sourceSVGDocumentConversion source presented by SVGDocument.
optionsImageSaveOptionsImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size, margins, CSS media-type, etc.
outputPathStringFull image file path as output conversion result.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to JPG using ConvertSVG() methods of the Converter class and how to apply ImageSaveOptions and ICreateStreamProvider parameters. Other popular image formats related articles: SVG to PNG conversion, SVG to BMP conversion, SVG to GIF conversion and SVG to TIFF conversion.

Convert SVG to Image

Converter class offers multiple SVG specific conversions to image in popular formats. To convert SVG to image, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new ImageSaveOptions object with specific or default settings. Notice that default image format is PNG. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an image result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to JPG Converter that converts SVG to JPG with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Other popular image converters for different formats can be founded here: SVG to PNG Converter, SVG to BMP Converter, SVG to GIF Converter and SVG to TIFF Converter.

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "simple.svg");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default ImageSaveOptions object
      var options = new ImageSaveOptions();

      // Form SVG document as conversion source
      using (var document = new SVGDocument(sourcePath, new Configuration()))
      {
        // Initiate conversion process with default configuration
        Converter.ConvertSVG(document, options, resultPath);
      }

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(Url, ImageSaveOptions, string)

Convert SVG source presented by URL. Result is image file formed by output file path.

public static void ConvertSVG(Url url, ImageSaveOptions options, string outputPath)
ParameterTypeDescription
urlUrlSVG source document URL - provides an object representation of a universal identifier (URL).
optionsImageSaveOptionsImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size, margins, CSS media-type, etc.
outputPathStringFull image file path as output conversion result.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to JPG using ConvertSVG() methods of the Converter class and how to apply ImageSaveOptions and ICreateStreamProvider parameters. Other popular image formats related articles: SVG to PNG conversion, SVG to BMP conversion, SVG to GIF conversion and SVG to TIFF conversion.

Convert SVG to Image

Converter class offers multiple SVG specific conversions to image in popular formats. To convert SVG to image, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new ImageSaveOptions object with specific or default settings. Notice that default image format is PNG. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an image result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to JPG Converter that converts SVG to JPG with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Other popular image converters for different formats can be founded here: SVG to PNG Converter, SVG to BMP Converter, SVG to GIF Converter and SVG to TIFF Converter.

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Create Url based on input file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.jpg");

      // Define default ImageSaveOptions object
      var options = new ImageSaveOptions(ImageFormat.Jpeg);

      // Initiate conversion process
      Converter.ConvertSVG(sourceUrl, options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(Url, Configuration, ImageSaveOptions, string)

Convert SVG source presented by URL. Result is image file formed by output file path.

public static void ConvertSVG(Url url, Configuration configuration, ImageSaveOptions options, 
    string outputPath)
ParameterTypeDescription
urlUrlSVG source document URL - provides an object representation of a universal identifier (URL).
configurationConfigurationThe environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
optionsImageSaveOptionsImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size, margins, CSS media-type, etc.
outputPathStringFull image file path as output conversion result.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to JPG using ConvertSVG() methods of the Converter class and how to apply ImageSaveOptions and ICreateStreamProvider parameters. Other popular image formats related articles: SVG to PNG conversion, SVG to BMP conversion, SVG to GIF conversion and SVG to TIFF conversion.

Convert SVG to Image

Converter class offers multiple SVG specific conversions to image in popular formats. To convert SVG to image, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new ImageSaveOptions object with specific or default settings. Notice that default image format is PNG. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an image result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to JPG Converter that converts SVG to JPG with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Other popular image converters for different formats can be founded here: SVG to PNG Converter, SVG to BMP Converter, SVG to GIF Converter and SVG to TIFF Converter.

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Create Url based on input file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.png");

      // Define default ImageSaveOptions object
      var options = new ImageSaveOptions();

      // Initiate conversion process with default configuration
      Converter.ConvertSVG(sourceUrl, new Configuration(), options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(string, ImageSaveOptions, string)

Convert SVG source presented by full file path to image. Result is image file formed by output file path.

public static void ConvertSVG(string sourcePath, ImageSaveOptions options, string outputPath)
ParameterTypeDescription
sourcePathStringSVG source full file path.
optionsImageSaveOptionsImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size, margins, CSS media-type, etc.
outputPathStringFull image file path as output conversion result.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to JPG using ConvertSVG() methods of the Converter class and how to apply ImageSaveOptions and ICreateStreamProvider parameters. Other popular image formats related articles: SVG to PNG conversion, SVG to BMP conversion, SVG to GIF conversion and SVG to TIFF conversion.

Convert SVG to Image

Converter class offers multiple SVG specific conversions to image in popular formats. To convert SVG to image, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new ImageSaveOptions object with specific or default settings. Notice that default image format is PNG. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an image result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to JPG Converter that converts SVG to JPG with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Other popular image converters for different formats can be founded here: SVG to PNG Converter, SVG to BMP Converter, SVG to GIF Converter and SVG to TIFF Converter.

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.svg");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.jpg");

      // Define default ImageSaveOptions object
      var options = new ImageSaveOptions(ImageFormat.Jpeg);

      // Initiate conversion process
      Converter.ConvertSVG(sourcePath, options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(string, Configuration, ImageSaveOptions, string)

Convert SVG source presented by full file path to image. Result is image file formed by output file path.

public static void ConvertSVG(string sourcePath, Configuration configuration, 
    ImageSaveOptions options, string outputPath)
ParameterTypeDescription
sourcePathStringSVG source full file path.
configurationConfigurationThe environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
optionsImageSaveOptionsImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size, margins, CSS media-type, etc.
outputPathStringFull image file path as output conversion result.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to JPG using ConvertSVG() methods of the Converter class and how to apply ImageSaveOptions and ICreateStreamProvider parameters. Other popular image formats related articles: SVG to PNG conversion, SVG to BMP conversion, SVG to GIF conversion and SVG to TIFF conversion.

Convert SVG to Image

Converter class offers multiple SVG specific conversions to image in popular formats. To convert SVG to image, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new ImageSaveOptions object with specific or default settings. Notice that default image format is PNG. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an image result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to JPG Converter that converts SVG to JPG with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Other popular image converters for different formats can be founded here: SVG to PNG Converter, SVG to BMP Converter, SVG to GIF Converter and SVG to TIFF Converter.

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.svg");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.png");

      // Define default ImageSaveOptions object
      var options = new ImageSaveOptions();

      // Initiate conversion process with default configuration
      Converter.ConvertSVG(sourcePath, new Configuration(), options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(string, string, ImageSaveOptions, string)

Convert SVG source presented by inline content to image. Result is image file formed by output file path.

public static void ConvertSVG(string content, string baseUri, ImageSaveOptions options, 
    string outputPath)
ParameterTypeDescription
contentStringString as inline svg content.
baseUriStringThe base URI of the document. It will be combined with the current directory path to form an absolute URL.
optionsImageSaveOptionsImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size, margins, CSS media-type, etc.
outputPathStringFull image file path as output conversion result.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to JPG using ConvertSVG() methods of the Converter class and how to apply ImageSaveOptions and ICreateStreamProvider parameters. Other popular image formats related articles: SVG to PNG conversion, SVG to BMP conversion, SVG to GIF conversion and SVG to TIFF conversion.

Convert SVG to Image

Converter class offers multiple SVG specific conversions to image in popular formats. To convert SVG to image, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new ImageSaveOptions object with specific or default settings. Notice that default image format is PNG. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an image result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to JPG Converter that converts SVG to JPG with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Other popular image converters for different formats can be founded here: SVG to PNG Converter, SVG to BMP Converter, SVG to GIF Converter and SVG to TIFF Converter.

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form inline svg content
      var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
        <circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
        </svg>";

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.png");

      // Define default ImageSaveOptions object
      var options = new ImageSaveOptions();

      // Initiate conversion process
      Converter.ConvertSVG(content, string.Empty, options, resultPath);

*OutputFolder - user output file path.

See Also


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

Convert SVG source presented by inline content to image. Result is image file formed by output file path.

public static void ConvertSVG(string content, string baseUri, Configuration configuration, 
    ImageSaveOptions options, string outputPath)
ParameterTypeDescription
contentStringString as inline svg content.
baseUriStringThe base URI of the document. It will be combined with the current directory path to form an absolute URL.
configurationConfigurationThe environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
optionsImageSaveOptionsImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size, margins, CSS media-type, etc.
outputPathStringFull image file path as output conversion result.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to JPG using ConvertSVG() methods of the Converter class and how to apply ImageSaveOptions and ICreateStreamProvider parameters. Other popular image formats related articles: SVG to PNG conversion, SVG to BMP conversion, SVG to GIF conversion and SVG to TIFF conversion.

Convert SVG to Image

Converter class offers multiple SVG specific conversions to image in popular formats. To convert SVG to image, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new ImageSaveOptions object with specific or default settings. Notice that default image format is PNG. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an image result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to JPG Converter that converts SVG to JPG with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Other popular image converters for different formats can be founded here: SVG to PNG Converter, SVG to BMP Converter, SVG to GIF Converter and SVG to TIFF Converter.

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form inline svg content
      var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
        <circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
        </svg>";

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.jpg");

      // Define default ImageSaveOptions object
      var options = new ImageSaveOptions(ImageFormat.Jpeg);

      // Initiate conversion process with default configuration
      Converter.ConvertSVG(content, string.Empty, new Configuration(), options, resultPath);

*OutputFolder - user output file path.

See Also


ConvertSVG(SVGDocument, ImageSaveOptions, ICreateStreamProvider)

Convert SVG source presented by SVGDocument. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertSVG(SVGDocument document, ImageSaveOptions options, 
    ICreateStreamProvider provider)
ParameterTypeDescription
documentSVGDocumentConversion source presented by SVGDocument.
optionsImageSaveOptionsImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size, margins, CSS media-type, etc.
providerICreateStreamProviderKnown (see FileCreateStreamProvider) or custom ICreateStreamProvider interface implementation.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to JPG using ConvertSVG() methods of the Converter class and how to apply ImageSaveOptions and ICreateStreamProvider parameters. Other popular image formats related articles: SVG to PNG conversion, SVG to BMP conversion, SVG to GIF conversion and SVG to TIFF conversion.

Convert SVG to Image

Converter class offers multiple SVG specific conversions to image in popular formats. To convert SVG to image, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new ImageSaveOptions object with specific or default settings. Notice that default image format is PNG. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an image result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to JPG Converter that converts SVG to JPG with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Other popular image converters for different formats can be founded here: SVG to PNG Converter, SVG to BMP Converter, SVG to GIF Converter and SVG to TIFF Converter.

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "simple.svg");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default ImageSaveOptions object
      var options = new ImageSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Form SVG document as conversion source
      using (var document = new SVGDocument(sourcePath, new Configuration()))
      {
        // Initiate conversion process
        Converter.ConvertSVG(document, options, sp);
      }

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(Url, ImageSaveOptions, ICreateStreamProvider)

Convert SVG source presented by URL. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertSVG(Url url, ImageSaveOptions options, ICreateStreamProvider provider)
ParameterTypeDescription
urlUrlSVG source document URL - provides an object representation of a universal identifier (URL).
optionsImageSaveOptionsImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size, margins, CSS media-type, etc.
providerICreateStreamProviderImplementation of the interface, which will be used to get an output stream.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to JPG using ConvertSVG() methods of the Converter class and how to apply ImageSaveOptions and ICreateStreamProvider parameters. Other popular image formats related articles: SVG to PNG conversion, SVG to BMP conversion, SVG to GIF conversion and SVG to TIFF conversion.

Convert SVG to Image

Converter class offers multiple SVG specific conversions to image in popular formats. To convert SVG to image, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new ImageSaveOptions object with specific or default settings. Notice that default image format is PNG. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an image result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to JPG Converter that converts SVG to JPG with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Other popular image converters for different formats can be founded here: SVG to PNG Converter, SVG to BMP Converter, SVG to GIF Converter and SVG to TIFF Converter.

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Create Url based on input file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default ImageSaveOptions object
      var options = new ImageSaveOptions(ImageFormat.Bmp);

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process
      Converter.ConvertSVG(sourceUrl, options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(Url, Configuration, ImageSaveOptions, ICreateStreamProvider)

Convert SVG source presented by URL. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertSVG(Url url, Configuration configuration, ImageSaveOptions options, 
    ICreateStreamProvider provider)
ParameterTypeDescription
urlUrlSVG source document URL - provides an object representation of a universal identifier (URL).
configurationConfigurationThe environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
optionsImageSaveOptionsImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size, margins, CSS media-type, etc.
providerICreateStreamProviderImplementation of the interface, which will be used to get an output stream.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to JPG using ConvertSVG() methods of the Converter class and how to apply ImageSaveOptions and ICreateStreamProvider parameters. Other popular image formats related articles: SVG to PNG conversion, SVG to BMP conversion, SVG to GIF conversion and SVG to TIFF conversion.

Convert SVG to Image

Converter class offers multiple SVG specific conversions to image in popular formats. To convert SVG to image, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new ImageSaveOptions object with specific or default settings. Notice that default image format is PNG. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an image result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to JPG Converter that converts SVG to JPG with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Other popular image converters for different formats can be founded here: SVG to PNG Converter, SVG to BMP Converter, SVG to GIF Converter and SVG to TIFF Converter.

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Create Url based on input file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default ImageSaveOptions object
      var options = new ImageSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process with default configuration
      Converter.ConvertSVG(sourceUrl, new Configuration(), options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(string, ImageSaveOptions, ICreateStreamProvider)

Convert SVG source presented by full file path to image. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertSVG(string sourcePath, ImageSaveOptions options, 
    ICreateStreamProvider provider)
ParameterTypeDescription
sourcePathStringSVG source full file path.
optionsImageSaveOptionsImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size, margins, CSS media-type, etc.
providerICreateStreamProviderImplementation of the interface, which will be used to get an output stream.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to JPG using ConvertSVG() methods of the Converter class and how to apply ImageSaveOptions and ICreateStreamProvider parameters. Other popular image formats related articles: SVG to PNG conversion, SVG to BMP conversion, SVG to GIF conversion and SVG to TIFF conversion.

Convert SVG to Image

Converter class offers multiple SVG specific conversions to image in popular formats. To convert SVG to image, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new ImageSaveOptions object with specific or default settings. Notice that default image format is PNG. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an image result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to JPG Converter that converts SVG to JPG with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Other popular image converters for different formats can be founded here: SVG to PNG Converter, SVG to BMP Converter, SVG to GIF Converter and SVG to TIFF Converter.

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.svg");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default ImageSaveOptions object
      var options = new ImageSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process
      Converter.ConvertSVG(sourcePath, options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(string, Configuration, ImageSaveOptions, ICreateStreamProvider)

Convert SVG source presented by full file path to image. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertSVG(string sourcePath, Configuration configuration, 
    ImageSaveOptions options, ICreateStreamProvider provider)
ParameterTypeDescription
sourcePathStringSVG source full file path.
configurationConfigurationThe environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
optionsImageSaveOptionsImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size, margins, CSS media-type, etc.
providerICreateStreamProviderKnown (see FileCreateStreamProvider) or custom ICreateStreamProvider interface implementation.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to JPG using ConvertSVG() methods of the Converter class and how to apply ImageSaveOptions and ICreateStreamProvider parameters. Other popular image formats related articles: SVG to PNG conversion, SVG to BMP conversion, SVG to GIF conversion and SVG to TIFF conversion.

Convert SVG to Image

Converter class offers multiple SVG specific conversions to image in popular formats. To convert SVG to image, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new ImageSaveOptions object with specific or default settings. Notice that default image format is PNG. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an image result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to JPG Converter that converts SVG to JPG with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Other popular image converters for different formats can be founded here: SVG to PNG Converter, SVG to BMP Converter, SVG to GIF Converter and SVG to TIFF Converter.

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.svg");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default ImageSaveOptions object
      var options = new ImageSaveOptions(ImageFormat.Tiff);

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process with default configuration
      Converter.ConvertSVG(sourcePath, new Configuration(), options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(string, string, ImageSaveOptions, ICreateStreamProvider)

Convert SVG source presented by inline content to image. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertSVG(string content, string baseUri, ImageSaveOptions options, 
    ICreateStreamProvider provider)
ParameterTypeDescription
contentStringString as inline svg content.
baseUriStringThe base URI of the document. It will be combined with the current directory path to form an absolute URL.
optionsImageSaveOptionsImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size, margins, CSS media-type, etc.
providerICreateStreamProviderKnown (see FileCreateStreamProvider) or custom ICreateStreamProvider interface implementation.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to JPG using ConvertSVG() methods of the Converter class and how to apply ImageSaveOptions and ICreateStreamProvider parameters. Other popular image formats related articles: SVG to PNG conversion, SVG to BMP conversion, SVG to GIF conversion and SVG to TIFF conversion.

Convert SVG to Image

Converter class offers multiple SVG specific conversions to image in popular formats. To convert SVG to image, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new ImageSaveOptions object with specific or default settings. Notice that default image format is PNG. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an image result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to JPG Converter that converts SVG to JPG with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Other popular image converters for different formats can be founded here: SVG to PNG Converter, SVG to BMP Converter, SVG to GIF Converter and SVG to TIFF Converter.

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
        <circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
        </svg>";

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Define default ImageSaveOptions object
      var options = new ImageSaveOptions();

      // Initiate conversion process
      Converter.ConvertSVG(content, string.Empty, options, sp);

*OutputFolder - user output file path.

See Also


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

Convert SVG source presented by inline content to image. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertSVG(string content, string baseUri, Configuration configuration, 
    ImageSaveOptions options, ICreateStreamProvider provider)
ParameterTypeDescription
contentStringString as inline svg content.
baseUriStringThe base URI of the document. It will be combined with the current directory path to form an absolute URL.
configurationConfigurationThe environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
optionsImageSaveOptionsImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size, margins, CSS media-type, etc.
providerICreateStreamProviderImplementation of the interface, which will be used to get an output stream.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

Refer to article where you find information on how to convert SVG to JPG using ConvertSVG() methods of the Converter class and how to apply ImageSaveOptions and ICreateStreamProvider parameters. Other popular image formats related articles: SVG to PNG conversion, SVG to BMP conversion, SVG to GIF conversion and SVG to TIFF conversion.

Convert SVG to Image

Converter class offers multiple SVG specific conversions to image in popular formats. To convert SVG to image, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new ImageSaveOptions object with specific or default settings. Notice that default image format is PNG. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an image result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to JPG Converter that converts SVG to JPG with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Other popular image converters for different formats can be founded here: SVG to PNG Converter, SVG to BMP Converter, SVG to GIF Converter and SVG to TIFF Converter.

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
        <circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
        </svg>";

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Define default ImageSaveOptions object
      var options = new ImageSaveOptions();

      // Initiate conversion process
      Converter.ConvertSVG(content, string.Empty, new Configuration(), options, sp);

*OutputFolder - user output file path.

See Also


ConvertSVG(SVGDocument, XpsSaveOptions, string)

Convert SVG source presented by SVGDocument. Result is xps file formed by output file path.

public static void ConvertSVG(SVGDocument source, XpsSaveOptions options, string outputPath)
ParameterTypeDescription
sourceSVGDocumentConversion source presented by SVGDocument.
optionsXpsSaveOptionsXpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPathStringFull xps file path as output conversion result.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

XPS is a document storage and viewing format developed by Microsoft. An XPS file has a set of advantages that support security features, such as digital signatures to provide greater document security and more.

Refer to article where you find information on how to convert SVG to XPS using ConvertSVG() methods of the Converter class and how to apply XpsSaveOptions and ICreateStreamProvider parameters.

Convert SVG to XPS

Converter class offers multiple SVG specific conversions to XPS. To convert SVG to XPS, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new XpsSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an XPS result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to XPS Converter that converts SVG to XPS with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "simple.svg");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default XpsSaveOptions object
      var options = new XpsSaveOptions();

      // Form SVG document as conversion source
      using (var document = new SVGDocument(sourcePath, new Configuration()))
      {
		// Initiate conversion process with default configuration
		Converter.ConvertSVG(document, options, resultPath);
      }

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(Url, XpsSaveOptions, string)

Convert SVG source presented by URL. Result is xps file formed by output file path.

public static void ConvertSVG(Url url, XpsSaveOptions options, string outputPath)
ParameterTypeDescription
urlUrlSVG source document URL - provides an object representation of a universal identifier (URL).
optionsXpsSaveOptionsXpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPathStringFull xps file path as output conversion result.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

XPS is a document storage and viewing format developed by Microsoft. An XPS file has a set of advantages that support security features, such as digital signatures to provide greater document security and more.

Refer to article where you find information on how to convert SVG to XPS using ConvertSVG() methods of the Converter class and how to apply XpsSaveOptions and ICreateStreamProvider parameters.

Convert SVG to XPS

Converter class offers multiple SVG specific conversions to XPS. To convert SVG to XPS, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new XpsSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an XPS result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to XPS Converter that converts SVG to XPS with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Create Url based on input file path     
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.xps");

      // Define default XpsSaveOptions object
      var options = new XpsSaveOptions();

      // Initiate conversion process
      Converter.ConvertSVG(sourceUrl, options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(Url, Configuration, XpsSaveOptions, string)

Convert SVG source presented by URL. Result is xps file formed by output file path.

public static void ConvertSVG(Url url, Configuration configuration, XpsSaveOptions options, 
    string outputPath)
ParameterTypeDescription
urlUrlSVG source document URL - provides an object representation of a universal identifier (URL).
configurationConfigurationThe environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
optionsXpsSaveOptionsXpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPathStringFull xps file path as output conversion result.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

XPS is a document storage and viewing format developed by Microsoft. An XPS file has a set of advantages that support security features, such as digital signatures to provide greater document security and more.

Refer to article where you find information on how to convert SVG to XPS using ConvertSVG() methods of the Converter class and how to apply XpsSaveOptions and ICreateStreamProvider parameters.

Convert SVG to XPS

Converter class offers multiple SVG specific conversions to XPS. To convert SVG to XPS, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new XpsSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an XPS result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to XPS Converter that converts SVG to XPS with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Create Url based on input file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.xps");

      // Define default XpsSaveOptions object
      var options = new XpsSaveOptions();

      // Initiate conversion process with default configuration
      Converter.ConvertSVG(sourceUrl, new Configuration(), options, resultPath);





*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(string, XpsSaveOptions, string)

Convert SVG source presented by full file path to XPS. Result is xps file formed by output file path.

public static void ConvertSVG(string sourcePath, XpsSaveOptions options, string outputPath)
ParameterTypeDescription
sourcePathStringSVG source full file path.
optionsXpsSaveOptionsXpsSaveOptions object usage enables you to tune the rendering process.
outputPathStringFull xps file path as output conversion result.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

XPS is a document storage and viewing format developed by Microsoft. An XPS file has a set of advantages that support security features, such as digital signatures to provide greater document security and more.

Refer to article where you find information on how to convert SVG to XPS using ConvertSVG() methods of the Converter class and how to apply XpsSaveOptions and ICreateStreamProvider parameters.

Convert SVG to XPS

Converter class offers multiple SVG specific conversions to XPS. To convert SVG to XPS, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new XpsSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an XPS result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to XPS Converter that converts SVG to XPS with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
... 
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.svg");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.xps");

      // Define default XpsSaveOptions object
      var options = new XpsSaveOptions();

      // Initiate conversion process
      Converter.ConvertSVG(sourcePath, options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(string, Configuration, XpsSaveOptions, string)

Convert SVG source presented by full file path to XPS. Result is xps file formed by output file path.

public static void ConvertSVG(string sourcePath, Configuration configuration, 
    XpsSaveOptions options, string outputPath)
ParameterTypeDescription
sourcePathStringSVG source full file path.
configurationConfigurationThe environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
optionsXpsSaveOptionsXpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPathStringFull xps file path as output conversion result.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

XPS is a document storage and viewing format developed by Microsoft. An XPS file has a set of advantages that support security features, such as digital signatures to provide greater document security and more.

Refer to article where you find information on how to convert SVG to XPS using ConvertSVG() methods of the Converter class and how to apply XpsSaveOptions and ICreateStreamProvider parameters.

Convert SVG to XPS

Converter class offers multiple SVG specific conversions to XPS. To convert SVG to XPS, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new XpsSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an XPS result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to XPS Converter that converts SVG to XPS with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
... 
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.svg");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.xps");

      // Define default XpsSaveOptions object
      var options = new XpsSaveOptions();

      // Initiate conversion process with default configuration
      Converter.ConvertSVG(sourcePath, new Configuration(), options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertSVG(string, string, XpsSaveOptions, string)

Convert SVG source presented by inline content to XPS. Result is xps file formed by output file path.

public static void ConvertSVG(string content, string baseUri, XpsSaveOptions options, 
    string outputPath)
ParameterTypeDescription
contentStringString as inline svg content.
baseUriStringThe base URI of the document. It will be combined with the current directory path to form an absolute URL.
optionsXpsSaveOptionsXpsSaveOptions object usage enables you to tune the rendering process.
outputPathStringFull xps file path as output conversion result.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

XPS is a document storage and viewing format developed by Microsoft. An XPS file has a set of advantages that support security features, such as digital signatures to provide greater document security and more.

Refer to article where you find information on how to convert SVG to XPS using ConvertSVG() methods of the Converter class and how to apply XpsSaveOptions and ICreateStreamProvider parameters.

Convert SVG to XPS

Converter class offers multiple SVG specific conversions to XPS. To convert SVG to XPS, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new XpsSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an XPS result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to XPS Converter that converts SVG to XPS with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
... 
      // Form inline svg content
      var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
        <circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
        </svg>";

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.xps");

      // Define default XpsSaveOptions object
      var options = new XpsSaveOptions();

      // Initiate conversion process
      Converter.ConvertSVG(content, string.Empty, options, resultPath);

*OutputFolder - user output file path.

See Also


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

Convert SVG source presented by inline content to XPS. Result is xps file formed by output file path.

public static void ConvertSVG(string content, string baseUri, Configuration configuration, 
    XpsSaveOptions options, string outputPath)
ParameterTypeDescription
contentStringString as inline svg content.
baseUriStringThe base URI of the document. It will be combined with the current directory path to form an absolute URL.
configurationConfigurationThe environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
optionsXpsSaveOptionsXpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPathStringFull xps file path as output conversion result.

Remarks

SVG Converter

SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of an image. The word Scalable refers to the fact that SVG can be scaled to different sizes without losing any quality. A text-based description of such files makes them independent of resolution. It is one of the most used formats for website building and print graphics to achieve scalability.

XPS is a document storage and viewing format developed by Microsoft. An XPS file has a set of advantages that support security features, such as digital signatures to provide greater document security and more.

Refer to article where you find information on how to convert SVG to XPS using ConvertSVG() methods of the Converter class and how to apply XpsSaveOptions and ICreateStreamProvider parameters.

Convert SVG to XPS

Converter class offers multiple SVG specific conversions to XPS. To convert SVG to XPS, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local SVG file or remote Url as conversion source. You can also define SVGDocument as conversion source or even use inline SVG content presented by string source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new XpsSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertSVG() method of the Converter class to save SVG as an XPS result with three or more parameters depend on user scenario.Online SVG converter

Aspose.HTML offers a free online SVG to XPS Converter that converts SVG to XPS with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
... 
      // Form inline svg content
      var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
        <circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
        </svg>";

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.xps");

      // Define default XpsSaveOptions object
      var options = new XpsSaveOptions();

      // Initiate conversion process with default configuration
      Converter.ConvertSVG(content, string.Empty, new Configuration(), options, resultPath);

*OutputFolder - user output file path.

See Also