Converter.ConvertSVG

Contents
[ ]

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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO; 
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO;
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO;
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO;
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO;
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO;
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO;
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO;
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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


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

import System.IO;
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO;
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO;
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO;
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO;
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO;
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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

import System.IO;
import com.aspose.html.IO;
import com.aspose.html.Saving;  
import com.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