Converter.ConvertSVG
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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form source file path
var sourcePath = Path.Combine(InputFolder, "simple.svg");
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Define default XpsSaveOptions object
var options = new XpsSaveOptions();
// Use one of ICreateStreamProvider implementation
ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);
// Form SVG document as conversion source
using (var document = new SVGDocument(sourcePath, new Configuration()))
{
// Initiate conversion process with default configuration
Converter.ConvertSVG(document, options, sp);
}
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class SVGDocument
- class XpsSaveOptions
- interface ICreateStreamProvider
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form source file path
var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Define default XpsSaveOptions object
var options = new XpsSaveOptions();
// Use one of ICreateStreamProvider implementation
ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);
// Initiate conversion process
Converter.ConvertSVG(sourceUrl, options, sp);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class Url
- class XpsSaveOptions
- interface ICreateStreamProvider
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form source file path
var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Define default XpsSaveOptions object
var options = new XpsSaveOptions();
// Use one of ICreateStreamProvider implementation
ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);
// Initiate conversion process with default configuration
Converter.ConvertSVG(sourceUrl, new Configuration(), options, sp);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class Url
- class Configuration
- class XpsSaveOptions
- interface ICreateStreamProvider
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form source file path
var sourcePath = Path.Combine(InputFolder, "simple.svg");
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Define default XpsSaveOptions object
var options = new XpsSaveOptions();
// Use one of ICreateStreamProvider implementation
ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);
// Initiate conversion process
Converter.ConvertSVG(sourcePath, options, sp);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class XpsSaveOptions
- interface ICreateStreamProvider
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
var sourcePath = Path.Combine(InputFolder, "sample.svg");
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Define default XpsSaveOptions object
var options = new XpsSaveOptions();
// Use one of ICreateStreamProvider implementation
ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);
// Initiate conversion process with default configuration
Converter.ConvertSVG(sourcePath, new Configuration(), options, sp);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class Configuration
- class XpsSaveOptions
- interface ICreateStreamProvider
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
<circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
</svg>";
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Use one of ICreateStreamProvider implementation
ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);
// Define default XpsSaveOptions object
var options = new XpsSaveOptions();
// Initiate conversion process
Converter.ConvertSVG(content, string.Empty, options, sp);
*OutputFolder - user output file path.
See Also
- class XpsSaveOptions
- interface ICreateStreamProvider
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
<circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
</svg>";
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Use one of ICreateStreamProvider implementation
ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);
// Define default XpsSaveOptions object
var options = new XpsSaveOptions();
// Initiate conversion process with default configuration
Converter.ConvertSVG(content, string.Empty, new Configuration(), options, sp);
*OutputFolder - user output file path.
See Also
- class Configuration
- class XpsSaveOptions
- interface ICreateStreamProvider
- class Converter
- namespace Aspose.Html.Converters
- assembly Aspose.HTML
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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form source file path
var sourcePath = Path.Combine(InputFolder, "simple.svg");
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Define default DocSaveOptions object
var options = new DocSaveOptions();
// Form SVG document as conversion source
using (var document = new SVGDocument(sourcePath, new Configuration()))
{
// Initiate conversion process with default configuration
Converter.ConvertSVG(document, options, resultPath);
}
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class SVGDocument
- class DocSaveOptions
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Create Url based on input file path
var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result.docx");
// Define default DocSaveOptions object
var options = new DocSaveOptions();
// Initiate conversion process
Converter.ConvertSVG(sourceUrl, options, resultPath);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class Url
- class DocSaveOptions
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Create Url based on input file path
var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result.docx");
// Define default DocSaveOptions object
var options = new DocSaveOptions();
// Initiate conversion process with default configuration
Converter.ConvertSVG(sourceUrl, new Configuration(), options, resultPath);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class Url
- class Configuration
- class DocSaveOptions
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form source file path
var sourcePath = Path.Combine(InputFolder, "sample.svg");
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result.docx");
// Define default DocSaveOptions object
var options = new DocSaveOptions();
// Initiate conversion process
Converter.ConvertSVG(sourcePath, options, resultPath);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class DocSaveOptions
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form source file path
var sourcePath = Path.Combine(InputFolder, "sample.svg");
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result.docx");
// Define default DocSaveOptions object
var options = new DocSaveOptions();
// Initiate conversion process with default configuration
Converter.ConvertSVG(sourcePath, new Configuration(), options, resultPath);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class Configuration
- class DocSaveOptions
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form inline svg content
var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
<circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
</svg>";
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result.docx");
// Define default DocSaveOptions object
var options = new DocSaveOptions();
// Initiate conversion process
Converter.ConvertSVG(content, string.Empty, options, resultPath);
*OutputFolder - user output file path.
See Also
- class DocSaveOptions
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form inline svg content
var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
<circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
</svg>";
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result.docx");
// Define default DocSaveOptions object
var options = new DocSaveOptions();
// Initiate conversion process with default configuration
Converter.ConvertSVG(content, string.Empty, new Configuration(), options, resultPath);
*OutputFolder - user output file path.
See Also
- class Configuration
- class DocSaveOptions
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form source file path
var sourcePath = Path.Combine(InputFolder, "simple.svg");
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Define default DocSaveOptions object
var options = new DocSaveOptions();
// Use one of ICreateStreamProvider implementation
ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);
// Form SVG document as conversion source
using (var document = new SVGDocument(sourcePath, new Configuration()))
{
// Initiate conversion process with default configuration
Converter.ConvertSVG(document, options, sp);
}
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class SVGDocument
- class DocSaveOptions
- interface ICreateStreamProvider
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Create Url based on input file path
var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Define default DocSaveOptions object
var options = new DocSaveOptions();
// Use one of ICreateStreamProvider implementation
ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);
// Initiate conversion process
Converter.ConvertSVG(sourceUrl, options, sp);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class Url
- class DocSaveOptions
- interface ICreateStreamProvider
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Create Url based on input file path
var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Define default DocSaveOptions object
var options = new DocSaveOptions();
// Use one of ICreateStreamProvider implementation
ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);
// Initiate conversion process with default configuration
Converter.ConvertSVG(sourceUrl, new Configuration(), options, sp);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class Url
- class Configuration
- class DocSaveOptions
- interface ICreateStreamProvider
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form source file path
var sourcePath = Path.Combine(InputFolder, "sample.svg");
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Define default DocSaveOptions object
var options = new DocSaveOptions();
// Use one of ICreateStreamProvider implementation
ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);
// Initiate conversion process
Converter.ConvertSVG(sourcePath, options, sp);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class DocSaveOptions
- interface ICreateStreamProvider
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form source file path
var sourcePath = Path.Combine(InputFolder, "sample.svg");
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Define default DocSaveOptions object
var options = new DocSaveOptions();
// Use one of ICreateStreamProvider implementation
ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);
// Initiate conversion process with default configuration
Converter.ConvertSVG(sourcePath, new Configuration(), options, sp);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class Configuration
- class DocSaveOptions
- interface ICreateStreamProvider
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
<circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
</svg>";
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Use one of ICreateStreamProvider implementation
ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);
// Define default DocSaveOptions object
var options = new DocSaveOptions();
// Initiate conversion process
Converter.ConvertSVG(content, string.Empty, options, sp);
*OutputFolder - user output file path.
See Also
- class DocSaveOptions
- interface ICreateStreamProvider
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
<circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
</svg>";
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Use one of ICreateStreamProvider implementation
ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);
// Define default DocSaveOptions object
var options = new DocSaveOptions();
// Initiate conversion process
Converter.ConvertSVG(content, string.Empty, new Configuration(), options, sp);
*OutputFolder - user output file path.
See Also
- class Configuration
- class DocSaveOptions
- interface ICreateStreamProvider
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form source file path
var sourcePath = Path.Combine(InputFolder, "simple.svg");
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Define default PdfSaveOptions object
var options = new PdfSaveOptions();
// Form SVG document as conversion source
using (var document = new SVGDocument(sourcePath, new Configuration()))
{
// Initiate conversion process with default configuration
Converter.ConvertSVG(document, options, resultPath);
}
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class SVGDocument
- class PdfSaveOptions
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Create Url based on input file path
var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result.pdf");
// Define default PdfSaveOptions object
var options = new PdfSaveOptions();
// Initiate conversion process
Converter.ConvertSVG(sourceUrl, options, resultPath);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class Url
- class PdfSaveOptions
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Create Url based on input file path
var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result.pdf");
// Define default PdfSaveOptions object
var options = new PdfSaveOptions();
// Initiate conversion process with default configuration
Converter.ConvertSVG(sourceUrl, new Configuration(), options, resultPath);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class Url
- class Configuration
- class PdfSaveOptions
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form source file path
var sourcePath = Path.Combine(InputFolder, "sample.svg");
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result.pdf");
// Define default PdfSaveOptions object
var options = new PdfSaveOptions();
// Initiate conversion process
Converter.ConvertSVG(sourcePath, options, resultPath);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class PdfSaveOptions
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form source file path
var sourcePath = Path.Combine(InputFolder, "sample.svg");
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result.pdf");
// Define default PdfSaveOptions object
var options = new PdfSaveOptions();
// Initiate conversion process with default configuration
Converter.ConvertSVG(sourcePath, new Configuration(), options, resultPath);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class Configuration
- class PdfSaveOptions
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form inline svg content
var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
<circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
</svg>";
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result.pdf");
// Define default PdfSaveOptions object
var options = new PdfSaveOptions();
// Initiate conversion process
Converter.ConvertSVG(content, string.Empty, options, resultPath);
*OutputFolder - user output file path.
See Also
- class PdfSaveOptions
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form inline svg content
var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
<circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
</svg>";
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result.pdf");
// Define default PdfSaveOptions object
var options = new PdfSaveOptions();
// Initiate conversion process with default configuration
Converter.ConvertSVG(content, string.Empty, new Configuration(), options, resultPath);
*OutputFolder - user output file path.
See Also
- class Configuration
- class PdfSaveOptions
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form source file path
var sourcePath = Path.Combine(InputFolder, "simple.svg");
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Define default PdfSaveOptions object
var options = new PdfSaveOptions();
// Use one of ICreateStreamProvider implementation
ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);
// Form SVG document as conversion source
using (var document = new SVGDocument(sourcePath, new Configuration()))
{
// Initiate conversion process with default configuration
Converter.ConvertSVG(document, options, sp);
}
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class SVGDocument
- class PdfSaveOptions
- interface ICreateStreamProvider
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Create Url based on input file path
var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Define default PdfSaveOptions object
var options = new PdfSaveOptions();
// Use one of ICreateStreamProvider implementation
ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);
// Initiate conversion process
Converter.ConvertSVG(sourceUrl, options, sp);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class Url
- class PdfSaveOptions
- interface ICreateStreamProvider
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Create Url based on input file path
var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Define default PdfSaveOptions object
var options = new PdfSaveOptions();
// Use one of ICreateStreamProvider implementation
ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);
// Initiate conversion process with default configuration
Converter.ConvertSVG(sourceUrl, new Configuration(), options, sp);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class Url
- class Configuration
- class PdfSaveOptions
- interface ICreateStreamProvider
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form source file path
var sourcePath = Path.Combine(InputFolder, "sample.svg");
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Define default PdfSaveOptions object
var options = new PdfSaveOptions();
// Use one of ICreateStreamProvider implementation
ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);
// Initiate conversion process
Converter.ConvertSVG(sourcePath, options, sp);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class PdfSaveOptions
- interface ICreateStreamProvider
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form source file path
var sourcePath = Path.Combine(InputFolder, "sample.svg");
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Define default PdfSaveOptions object
var options = new PdfSaveOptions();
// Use one of ICreateStreamProvider implementation
ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);
// Initiate conversion process with default configuration
Converter.ConvertSVG(sourcePath, new Configuration(), options, sp);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class Configuration
- class PdfSaveOptions
- interface ICreateStreamProvider
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
<circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
</svg>";
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Use one of ICreateStreamProvider implementation
ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);
// Define default PdfSaveOptions object
var options = new PdfSaveOptions();
// Initiate conversion process
Converter.ConvertSVG(content, string.Empty, options, sp);
*OutputFolder - user output file path.
See Also
- class PdfSaveOptions
- interface ICreateStreamProvider
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
<circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
</svg>";
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Use one of ICreateStreamProvider implementation
ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);
// Define default PdfSaveOptions object
var options = new PdfSaveOptions();
// Initiate conversion process
Converter.ConvertSVG(content, string.Empty, new Configuration(), options, sp);
*OutputFolder - user output file path.
See Also
- class Configuration
- class PdfSaveOptions
- interface ICreateStreamProvider
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form source file path
var sourcePath = Path.Combine(InputFolder, "simple.svg");
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Define default ImageSaveOptions object
var options = new ImageSaveOptions();
// Form SVG document as conversion source
using (var document = new SVGDocument(sourcePath, new Configuration()))
{
// Initiate conversion process with default configuration
Converter.ConvertSVG(document, options, resultPath);
}
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class SVGDocument
- class ImageSaveOptions
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Create Url based on input file path
var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result.jpg");
// Define default ImageSaveOptions object
var options = new ImageSaveOptions(ImageFormat.Jpeg);
// Initiate conversion process
Converter.ConvertSVG(sourceUrl, options, resultPath);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class Url
- class ImageSaveOptions
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Create Url based on input file path
var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result.png");
// Define default ImageSaveOptions object
var options = new ImageSaveOptions();
// Initiate conversion process with default configuration
Converter.ConvertSVG(sourceUrl, new Configuration(), options, resultPath);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class Url
- class Configuration
- class ImageSaveOptions
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form source file path
var sourcePath = Path.Combine(InputFolder, "sample.svg");
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result.jpg");
// Define default ImageSaveOptions object
var options = new ImageSaveOptions(ImageFormat.Jpeg);
// Initiate conversion process
Converter.ConvertSVG(sourcePath, options, resultPath);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class ImageSaveOptions
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form source file path
var sourcePath = Path.Combine(InputFolder, "sample.svg");
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result.png");
// Define default ImageSaveOptions object
var options = new ImageSaveOptions();
// Initiate conversion process with default configuration
Converter.ConvertSVG(sourcePath, new Configuration(), options, resultPath);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class Configuration
- class ImageSaveOptions
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form inline svg content
var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
<circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
</svg>";
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result.png");
// Define default ImageSaveOptions object
var options = new ImageSaveOptions();
// Initiate conversion process
Converter.ConvertSVG(content, string.Empty, options, resultPath);
*OutputFolder - user output file path.
See Also
- class ImageSaveOptions
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form inline svg content
var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
<circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
</svg>";
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result.jpg");
// Define default ImageSaveOptions object
var options = new ImageSaveOptions(ImageFormat.Jpeg);
// Initiate conversion process with default configuration
Converter.ConvertSVG(content, string.Empty, new Configuration(), options, resultPath);
*OutputFolder - user output file path.
See Also
- class Configuration
- class ImageSaveOptions
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form source file path
var sourcePath = Path.Combine(InputFolder, "simple.svg");
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Define default ImageSaveOptions object
var options = new ImageSaveOptions();
// Use one of ICreateStreamProvider implementation
ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);
// Form SVG document as conversion source
using (var document = new SVGDocument(sourcePath, new Configuration()))
{
// Initiate conversion process
Converter.ConvertSVG(document, options, sp);
}
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class SVGDocument
- class ImageSaveOptions
- interface ICreateStreamProvider
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Create Url based on input file path
var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Define default ImageSaveOptions object
var options = new ImageSaveOptions(ImageFormat.Bmp);
// Use one of ICreateStreamProvider implementation
ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);
// Initiate conversion process
Converter.ConvertSVG(sourceUrl, options, sp);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class Url
- class ImageSaveOptions
- interface ICreateStreamProvider
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Create Url based on input file path
var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Define default ImageSaveOptions object
var options = new ImageSaveOptions();
// Use one of ICreateStreamProvider implementation
ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);
// Initiate conversion process with default configuration
Converter.ConvertSVG(sourceUrl, new Configuration(), options, sp);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class Url
- class Configuration
- class ImageSaveOptions
- interface ICreateStreamProvider
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form source file path
var sourcePath = Path.Combine(InputFolder, "sample.svg");
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Define default ImageSaveOptions object
var options = new ImageSaveOptions();
// Use one of ICreateStreamProvider implementation
ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);
// Initiate conversion process
Converter.ConvertSVG(sourcePath, options, sp);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class ImageSaveOptions
- interface ICreateStreamProvider
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form source file path
var sourcePath = Path.Combine(InputFolder, "sample.svg");
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Define default ImageSaveOptions object
var options = new ImageSaveOptions(ImageFormat.Tiff);
// Use one of ICreateStreamProvider implementation
ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);
// Initiate conversion process with default configuration
Converter.ConvertSVG(sourcePath, new Configuration(), options, sp);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class Configuration
- class ImageSaveOptions
- interface ICreateStreamProvider
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
<circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
</svg>";
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Use one of ICreateStreamProvider implementation
ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);
// Define default ImageSaveOptions object
var options = new ImageSaveOptions();
// Initiate conversion process
Converter.ConvertSVG(content, string.Empty, options, sp);
*OutputFolder - user output file path.
See Also
- class ImageSaveOptions
- interface ICreateStreamProvider
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
<circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
</svg>";
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Use one of ICreateStreamProvider implementation
ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);
// Define default ImageSaveOptions object
var options = new ImageSaveOptions();
// Initiate conversion process
Converter.ConvertSVG(content, string.Empty, new Configuration(), options, sp);
*OutputFolder - user output file path.
See Also
- class Configuration
- class ImageSaveOptions
- interface ICreateStreamProvider
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form source file path
var sourcePath = Path.Combine(InputFolder, "simple.svg");
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result");
// Define default XpsSaveOptions object
var options = new XpsSaveOptions();
// Form SVG document as conversion source
using (var document = new SVGDocument(sourcePath, new Configuration()))
{
// Initiate conversion process with default configuration
Converter.ConvertSVG(document, options, resultPath);
}
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class SVGDocument
- class XpsSaveOptions
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Create Url based on input file path
var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result.xps");
// Define default XpsSaveOptions object
var options = new XpsSaveOptions();
// Initiate conversion process
Converter.ConvertSVG(sourceUrl, options, resultPath);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class Url
- class XpsSaveOptions
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Create Url based on input file path
var sourceUrl = new Url(Path.Combine(InputFolder, "sample.svg"));
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result.xps");
// Define default XpsSaveOptions object
var options = new XpsSaveOptions();
// Initiate conversion process with default configuration
Converter.ConvertSVG(sourceUrl, new Configuration(), options, resultPath);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class Url
- class Configuration
- class XpsSaveOptions
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form source file path
var sourcePath = Path.Combine(InputFolder, "sample.svg");
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result.xps");
// Define default XpsSaveOptions object
var options = new XpsSaveOptions();
// Initiate conversion process
Converter.ConvertSVG(sourcePath, options, resultPath);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class XpsSaveOptions
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form source file path
var sourcePath = Path.Combine(InputFolder, "sample.svg");
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result.xps");
// Define default XpsSaveOptions object
var options = new XpsSaveOptions();
// Initiate conversion process with default configuration
Converter.ConvertSVG(sourcePath, new Configuration(), options, resultPath);
*InputFolder - user source file path.
*OutputFolder - user output file path.
See Also
- class Configuration
- class XpsSaveOptions
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form inline svg content
var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
<circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
</svg>";
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result.xps");
// Define default XpsSaveOptions object
var options = new XpsSaveOptions();
// Initiate conversion process
Converter.ConvertSVG(content, string.Empty, options, resultPath);
*OutputFolder - user output file path.
See Also
- class XpsSaveOptions
- class Converter
- namespace Aspose.Html.Converters
- assembly 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
using System.IO;
using Aspose.Html.IO;
using Aspose.Html.Saving;
using Aspose.Html.Converters;
...
// Form inline svg content
var content = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""100"" height=""100"">
<circle cx=""50"" cy=""50"" r=""40"" stroke=""green"" stroke-width=""4"" fill=""yellow"" />
</svg>";
// Form result file path
var resultPath = Path.Combine(OutputFolder, "result.xps");
// Define default XpsSaveOptions object
var options = new XpsSaveOptions();
// Initiate conversion process with default configuration
Converter.ConvertSVG(content, string.Empty, new Configuration(), options, resultPath);
*OutputFolder - user output file path.
See Also
- class Configuration
- class XpsSaveOptions
- class Converter
- namespace Aspose.Html.Converters
- assembly Aspose.HTML