Converter.ConvertSVG
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)
Parameter | Type | Description |
---|---|---|
source | SVGDocument | Conversion source presented by SVGDocument . |
options | DocSaveOptions | DocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
outputPath | String | Full 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
- class SVGDocument
- class DocSaveOptions
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
url | Url | SVG source document URL - provides an object representation of a universal identifier (URL). |
options | DocSaveOptions | DocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
outputPath | String | Full 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
- class Url
- class DocSaveOptions
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
url | Url | SVG source document URL - provides an object representation of a universal identifier (URL). |
configuration | Configuration | The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application. |
options | DocSaveOptions | DocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
outputPath | String | Full 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
- class Url
- class Configuration
- class DocSaveOptions
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
sourcePath | String | SVG source full file path. |
options | DocSaveOptions | DocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
outputPath | String | Full 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
- class DocSaveOptions
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
sourcePath | String | SVG source full file path. |
configuration | Configuration | The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application. |
options | DocSaveOptions | DocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
outputPath | String | Full 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
- class Configuration
- class DocSaveOptions
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
content | String | String as inline svg content. |
baseUri | String | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
options | DocSaveOptions | DocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
outputPath | String | Full 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
- class DocSaveOptions
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
content | String | String as inline svg content. |
baseUri | String | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
configuration | Configuration | The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application. |
options | DocSaveOptions | DocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
outputPath | String | Full 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
- class Configuration
- class DocSaveOptions
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
document | SVGDocument | Conversion source presented by SVGDocument . |
options | DocSaveOptions | DocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
provider | ICreateStreamProvider | Known (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
- class SVGDocument
- class DocSaveOptions
- interface ICreateStreamProvider
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
url | Url | SVG source document URL - provides an object representation of a universal identifier (URL). |
options | DocSaveOptions | DocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
provider | ICreateStreamProvider | Implementation 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
- class Url
- class DocSaveOptions
- interface ICreateStreamProvider
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
url | Url | SVG source document URL - provides an object representation of a universal identifier (URL). |
configuration | Configuration | The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application. |
options | DocSaveOptions | DocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
provider | ICreateStreamProvider | Known (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
- class Url
- class Configuration
- class DocSaveOptions
- interface ICreateStreamProvider
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
sourcePath | String | SVG source full file path. |
options | DocSaveOptions | DocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
provider | ICreateStreamProvider | Known (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
- class DocSaveOptions
- interface ICreateStreamProvider
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
sourcePath | String | SVG source full file path. |
configuration | Configuration | The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application. |
options | DocSaveOptions | DocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
provider | ICreateStreamProvider | Implementation 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
- class Configuration
- class DocSaveOptions
- interface ICreateStreamProvider
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
content | String | String as inline svg content. |
baseUri | String | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
options | DocSaveOptions | DocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
provider | ICreateStreamProvider | Implementation 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
- class DocSaveOptions
- interface ICreateStreamProvider
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
content | String | String as inline svg content. |
baseUri | String | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
configuration | Configuration | The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application. |
options | DocSaveOptions | DocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
provider | ICreateStreamProvider | Implementation 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
- class Configuration
- class DocSaveOptions
- interface ICreateStreamProvider
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
source | SVGDocument | Conversion source presented by SVGDocument . |
options | PdfSaveOptions | PdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
outputPath | String | Full 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
- class SVGDocument
- class PdfSaveOptions
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
url | Url | SVG source document URL - provides an object representation of a universal identifier (URL). |
options | PdfSaveOptions | PdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
outputPath | String | Full 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
- class Url
- class PdfSaveOptions
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
url | Url | SVG source document URL - provides an object representation of a universal identifier (URL). |
configuration | Configuration | The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application. |
options | PdfSaveOptions | PdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
outputPath | String | Full 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
- class Url
- class Configuration
- class PdfSaveOptions
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
sourcePath | String | SVG source full file path. |
options | PdfSaveOptions | PdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
outputPath | String | Full 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
- class PdfSaveOptions
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
sourcePath | String | SVG source full file path. |
configuration | Configuration | The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application. |
options | PdfSaveOptions | PdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
outputPath | String | Full 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
- class Configuration
- class PdfSaveOptions
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
content | String | String as inline svg content. |
baseUri | String | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
options | PdfSaveOptions | PdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
outputPath | String | Full 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
- class PdfSaveOptions
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
content | String | String as inline svg content. |
baseUri | String | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
configuration | Configuration | The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application. |
options | PdfSaveOptions | PdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
outputPath | String | Full 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
- class Configuration
- class PdfSaveOptions
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
document | SVGDocument | Conversion source presented by SVGDocument . |
options | PdfSaveOptions | PdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
provider | ICreateStreamProvider | Known (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
- class SVGDocument
- class PdfSaveOptions
- interface ICreateStreamProvider
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
url | Url | SVG source document URL - provides an object representation of a universal identifier (URL). |
options | PdfSaveOptions | PdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
provider | ICreateStreamProvider | Known (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
- class Url
- class PdfSaveOptions
- interface ICreateStreamProvider
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
url | Url | SVG source document URL - provides an object representation of a universal identifier (URL). |
configuration | Configuration | The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application. |
options | PdfSaveOptions | PdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
provider | ICreateStreamProvider | Known (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
- class Url
- class Configuration
- class PdfSaveOptions
- interface ICreateStreamProvider
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
sourcePath | String | SVG source full file path. |
options | PdfSaveOptions | PdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
provider | ICreateStreamProvider | Implementation 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
- class PdfSaveOptions
- interface ICreateStreamProvider
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
sourcePath | String | SVG source full file path. |
configuration | Configuration | The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application. |
options | PdfSaveOptions | PdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
provider | ICreateStreamProvider | Implementation 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
- class Configuration
- class PdfSaveOptions
- interface ICreateStreamProvider
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
content | String | String as inline svg content. |
baseUri | String | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
options | PdfSaveOptions | PdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
provider | ICreateStreamProvider | Implementation 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
- class PdfSaveOptions
- interface ICreateStreamProvider
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
content | String | String as inline svg content. |
baseUri | String | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
configuration | Configuration | The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application. |
options | PdfSaveOptions | PdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
provider | ICreateStreamProvider | Known (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
- class Configuration
- class PdfSaveOptions
- interface ICreateStreamProvider
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
source | SVGDocument | Conversion source presented by SVGDocument . |
options | ImageSaveOptions | ImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size , margins , CSS media-type , etc. |
outputPath | String | Full 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
- class SVGDocument
- class ImageSaveOptions
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
url | Url | SVG source document URL - provides an object representation of a universal identifier (URL). |
options | ImageSaveOptions | ImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size , margins , CSS media-type , etc. |
outputPath | String | Full 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
- class Url
- class ImageSaveOptions
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
url | Url | SVG source document URL - provides an object representation of a universal identifier (URL). |
configuration | Configuration | The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application. |
options | ImageSaveOptions | ImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size , margins , CSS media-type , etc. |
outputPath | String | Full 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
- class Url
- class Configuration
- class ImageSaveOptions
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
sourcePath | String | SVG source full file path. |
options | ImageSaveOptions | ImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size , margins , CSS media-type , etc. |
outputPath | String | Full 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
- class ImageSaveOptions
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
sourcePath | String | SVG source full file path. |
configuration | Configuration | The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application. |
options | ImageSaveOptions | ImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size , margins , CSS media-type , etc. |
outputPath | String | Full 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
- class Configuration
- class ImageSaveOptions
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
content | String | String as inline svg content. |
baseUri | String | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
options | ImageSaveOptions | ImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size , margins , CSS media-type , etc. |
outputPath | String | Full 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
- class ImageSaveOptions
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
content | String | String as inline svg content. |
baseUri | String | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
configuration | Configuration | The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application. |
options | ImageSaveOptions | ImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size , margins , CSS media-type , etc. |
outputPath | String | Full 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
- class Configuration
- class ImageSaveOptions
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
document | SVGDocument | Conversion source presented by SVGDocument . |
options | ImageSaveOptions | ImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size , margins , CSS media-type , etc. |
provider | ICreateStreamProvider | Known (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
- class SVGDocument
- class ImageSaveOptions
- interface ICreateStreamProvider
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
url | Url | SVG source document URL - provides an object representation of a universal identifier (URL). |
options | ImageSaveOptions | ImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size , margins , CSS media-type , etc. |
provider | ICreateStreamProvider | Implementation 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
- class Url
- class ImageSaveOptions
- interface ICreateStreamProvider
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
url | Url | SVG source document URL - provides an object representation of a universal identifier (URL). |
configuration | Configuration | The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application. |
options | ImageSaveOptions | ImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size , margins , CSS media-type , etc. |
provider | ICreateStreamProvider | Implementation 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
- class Url
- class Configuration
- class ImageSaveOptions
- interface ICreateStreamProvider
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
sourcePath | String | SVG source full file path. |
options | ImageSaveOptions | ImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size , margins , CSS media-type , etc. |
provider | ICreateStreamProvider | Implementation 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
- class ImageSaveOptions
- interface ICreateStreamProvider
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
sourcePath | String | SVG source full file path. |
configuration | Configuration | The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application. |
options | ImageSaveOptions | ImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size , margins , CSS media-type , etc. |
provider | ICreateStreamProvider | Known (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
- class Configuration
- class ImageSaveOptions
- interface ICreateStreamProvider
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
content | String | String as inline svg content. |
baseUri | String | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
options | ImageSaveOptions | ImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size , margins , CSS media-type , etc. |
provider | ICreateStreamProvider | Known (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
- class ImageSaveOptions
- interface ICreateStreamProvider
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
content | String | String as inline svg content. |
baseUri | String | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
configuration | Configuration | The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application. |
options | ImageSaveOptions | ImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size , margins , CSS media-type , etc. |
provider | ICreateStreamProvider | Implementation 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
- class Configuration
- class ImageSaveOptions
- interface ICreateStreamProvider
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
source | SVGDocument | Conversion source presented by SVGDocument . |
options | XpsSaveOptions | XpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
outputPath | String | Full 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
- class SVGDocument
- class XpsSaveOptions
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
url | Url | SVG source document URL - provides an object representation of a universal identifier (URL). |
options | XpsSaveOptions | XpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
outputPath | String | Full 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
- class Url
- class XpsSaveOptions
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
url | Url | SVG source document URL - provides an object representation of a universal identifier (URL). |
configuration | Configuration | The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application. |
options | XpsSaveOptions | XpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
outputPath | String | Full 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
- class Url
- class Configuration
- class XpsSaveOptions
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
sourcePath | String | SVG source full file path. |
options | XpsSaveOptions | XpsSaveOptions object usage enables you to tune the rendering process. |
outputPath | String | Full 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
- class XpsSaveOptions
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
sourcePath | String | SVG source full file path. |
configuration | Configuration | The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application. |
options | XpsSaveOptions | XpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
outputPath | String | Full 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
- class Configuration
- class XpsSaveOptions
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
content | String | String as inline svg content. |
baseUri | String | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
options | XpsSaveOptions | XpsSaveOptions object usage enables you to tune the rendering process. |
outputPath | String | Full 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
- class XpsSaveOptions
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
content | String | String as inline svg content. |
baseUri | String | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
configuration | Configuration | The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application. |
options | XpsSaveOptions | XpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
outputPath | String | Full 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
- class Configuration
- class XpsSaveOptions
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
document | SVGDocument | Conversion source presented by SVGDocument . |
options | XpsSaveOptions | XpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
provider | ICreateStreamProvider | Implementation 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
- class SVGDocument
- class XpsSaveOptions
- interface ICreateStreamProvider
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
url | Url | SVG source document URL - provides an object representation of a universal identifier (URL). |
options | XpsSaveOptions | XpsSaveOptions object usage enables you to tune the rendering process. |
provider | ICreateStreamProvider | Known (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
- class Url
- class XpsSaveOptions
- interface ICreateStreamProvider
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
url | Url | SVG source document URL - provides an object representation of a universal identifier (URL). |
configuration | Configuration | The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application. |
options | XpsSaveOptions | XpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
provider | ICreateStreamProvider | Known (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
- class Url
- class Configuration
- class XpsSaveOptions
- interface ICreateStreamProvider
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
sourcePath | String | SVG source full file path. |
options | XpsSaveOptions | XpsSaveOptions object usage enables you to tune the rendering process. |
provider | ICreateStreamProvider | Implementation 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
- class XpsSaveOptions
- interface ICreateStreamProvider
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
sourcePath | String | SVG source full file path. |
configuration | Configuration | The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application. |
options | XpsSaveOptions | XpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
provider | ICreateStreamProvider | Implementation 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
- class Configuration
- class XpsSaveOptions
- interface ICreateStreamProvider
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
content | String | String as inline svg content. |
baseUri | String | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
options | XpsSaveOptions | XpsSaveOptions object usage enables you to tune the rendering process. |
provider | ICreateStreamProvider | Implementation 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
- class XpsSaveOptions
- interface ICreateStreamProvider
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML
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)
Parameter | Type | Description |
---|---|---|
content | String | String as inline svg content. |
baseUri | String | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
configuration | Configuration | The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application. |
options | XpsSaveOptions | XpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation. |
provider | ICreateStreamProvider | Known (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
- class Configuration
- class XpsSaveOptions
- interface ICreateStreamProvider
- class Converter
- package com.aspose.html.Converters
- package Aspose.HTML