Class Converter
名称: Aspose.Svg.Converters 會議: Aspose.SVG.dll (25.5.0)
共享面板仅适用于最常见的转换场景。它提供了广泛的转换到流行的格式,如PDF,XPS,图像格式等。更具体的转换(转换、储蓄)用户案例由已知和文档低级API功能呈现。
[ComVisible(true)]
public static class Converter
Inheritance
继承人
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Methods
转换(ImageVectorizerConfiguration, string, 字符串)
将磁盘上的图像转换为 SVG 格式。
public static void ConvertImageToSVG(ImageVectorizerConfiguration configuration, string imageFile, string outputPath)
Parameters
configuration
ImageVectorizerConfiguration
Aspose.Svg.ImageVectorization.Imagevectorizer 配置,控制跟踪参数。
imageFile
string
路到源图像文件。
outputPath
string
目的地路径为生成的SVG。
转换(ImageVectorizer 配置、流、线条)
将作为 System.IO.Stream 提供的 Raster 图像转换为 SVG 格式。
public static void ConvertImageToSVG(ImageVectorizerConfiguration configuration, Stream imageStream, string outputPath)
Parameters
configuration
ImageVectorizerConfiguration
Aspose.Svg.ImageVectorization.Imagevectorizer 配置,控制跟踪参数。
imageStream
Stream
可阅读的流,包含源图像。
outputPath
string
目的地路径为生成的SVG。
转换(SVGDocument, XpsSaveOptions, 字符串)
将 svg 文档转换为 xps.Result 是 xps 文件。
public static void ConvertSVG(SVGDocument source, XpsSaveOptions options, string outputPath)
Parameters
source
SVGDocument
转换源。
options
XpsSaveOptions
转换选项。
outputPath
string
输出文件路径。
转换(URL, XpsSaveOptions, 字符串)
将 svg 源转换为 xps. 结果是 xps 文件。
public static void ConvertSVG(Url url, XpsSaveOptions options, string outputPath)
Parameters
url
Url
源文件URL。
options
XpsSaveOptions
转换选项。
outputPath
string
输出文件路径。
转换(URL, 设置, XpsSaveOptions, 字符串)
将 svg 源转换为 xps. 结果是 xps 文件。
public static void ConvertSVG(Url url, Configuration configuration, XpsSaveOptions options, string outputPath)
Parameters
url
Url
源文件URL。
configuration
Configuration
环境配置。
options
XpsSaveOptions
转换选项。
outputPath
string
输出文件路径。
转换(字符串, XpsSaveOptions, 字符串)
将 svg 源转换为 xps. 结果是 xps 文件。
public static void ConvertSVG(string sourcePath, XpsSaveOptions options, string outputPath)
Parameters
sourcePath
string
Svg 文件源路径. 它将与当前目录路径相结合,形成一个绝对的 URL。
options
XpsSaveOptions
转换选项。
outputPath
string
输出文件路径。
转换(序列, 配置, XpsSaveOptions, 序列)
将 svg 源转换为 xps. 结果是 xps 文件。
public static void ConvertSVG(string sourcePath, Configuration configuration, XpsSaveOptions options, string outputPath)
Parameters
sourcePath
string
Svg 文件源路径. 它将与当前目录路径相结合,形成一个绝对的 URL。
configuration
Configuration
环境配置。
options
XpsSaveOptions
转换选项。
outputPath
string
输出文件路径。
转换(字符串,字符串,XpsSaveOptions,字符串)
将 svg 源转换为 xps. 结果是 xps 文件。
public static void ConvertSVG(string content, string baseUri, XpsSaveOptions options, string outputPath)
Parameters
content
string
Inline string svg 内容。
baseUri
string
文档的基 URI 将与当前的目录路径相结合,形成一个绝对的 URL。
options
XpsSaveOptions
转换选项。
outputPath
string
输出文件路径。
转换(字符串, 字符串, 配置, XpsSaveOptions, 字符串)
将 svg 源转换为 xps. 结果是 xps 文件。
public static void ConvertSVG(string content, string baseUri, Configuration configuration, XpsSaveOptions options, string outputPath)
Parameters
content
string
Inline string svg 内容。
baseUri
string
文档的基 URI 将与当前的目录路径相结合,形成一个绝对的 URL。
configuration
Configuration
环境配置。
options
XpsSaveOptions
转换选项。
outputPath
string
输出文件路径。
转换(SVGDocument, XpsSaveOptions, ICreateStreamProvider)
将 svg 源转换为 xps. 结果是 xps 文件。
public static void ConvertSVG(SVGDocument document, XpsSaveOptions options, ICreateStreamProvider provider)
Parameters
document
SVGDocument
转换源。
options
XpsSaveOptions
转换选项。
provider
ICreateStreamProvider
实施 Aspose.Svg.IO.ICreateStreamProvider 接口,将用于获得输出流。
转换(URL、XpsSaveOptions、ICreateStream提供商)
将 svg 源转换为 xps. 结果是 xps 文件。
public static void ConvertSVG(Url url, XpsSaveOptions options, ICreateStreamProvider provider)
Parameters
url
Url
文件URL。
options
XpsSaveOptions
转换选项。
provider
ICreateStreamProvider
实施 Aspose.Svg.IO.ICreateStreamProvider 接口,将用于获得输出流。
转换(URL, 设置, XpsSaveOptions, ICreateStreamProvider)
将 svg 源转换为 xps. 结果是 xps 文件。
public static void ConvertSVG(Url url, Configuration configuration, XpsSaveOptions options, ICreateStreamProvider provider)
Parameters
url
Url
文件URL。
configuration
Configuration
环境配置。
options
XpsSaveOptions
转换选项。
provider
ICreateStreamProvider
实施 Aspose.Svg.IO.ICreateStreamProvider 接口,将用于获得输出流。
转换(字符串, XpsSaveOptions, ICreateStreamProvider)
将 svg 源转换为 xps. 结果是 xps 文件。
public static void ConvertSVG(string sourcePath, XpsSaveOptions options, ICreateStreamProvider provider)
Parameters
sourcePath
string
Svg 文件源路径. 它将与当前目录路径相结合,形成一个绝对的 URL。
options
XpsSaveOptions
转换选项。
provider
ICreateStreamProvider
实施 Aspose.Svg.IO.ICreateStreamProvider 接口,将用于获得输出流。
转换(字符串, 配置, XpsSaveOptions, ICreateStreamProvider)
将 svg 源转换为 xps. 结果是 xps 文件。
public static void ConvertSVG(string sourcePath, Configuration configuration, XpsSaveOptions options, ICreateStreamProvider provider)
Parameters
sourcePath
string
Svg 文件源路径. 它将与当前目录路径相结合,形成一个绝对的 URL。
configuration
Configuration
环境配置。
options
XpsSaveOptions
转换选项。
provider
ICreateStreamProvider
实施 Aspose.Svg.IO.ICreateStreamProvider 接口,将用于获得输出流。
转换(字符串,字符串, XpsSaveOptions, ICreateStreamProvider)
将 svg 源转换为 xps. 结果是 xps 文件。
public static void ConvertSVG(string content, string baseUri, XpsSaveOptions options, ICreateStreamProvider provider)
Parameters
content
string
Inline string svg 内容。
baseUri
string
文档的基 URI 将与当前的目录路径相结合,形成一个绝对的 URL。
options
XpsSaveOptions
转换选项。
provider
ICreateStreamProvider
实施 Aspose.Svg.IO.ICreateStreamProvider 接口,将用于获得输出流。
转换(字符串, 字符串, 配置, XpsSaveOptions, ICreateStreamProvider)
将 svg 源转换为 xps. 结果是 xps 文件。
public static void ConvertSVG(string content, string baseUri, Configuration configuration, XpsSaveOptions options, ICreateStreamProvider provider)
Parameters
content
string
Inline string svg 内容。
baseUri
string
文档的基 URI 将与当前的目录路径相结合,形成一个绝对的 URL。
configuration
Configuration
环境配置。
options
XpsSaveOptions
转换选项。
provider
ICreateStreamProvider
实施 Aspose.Svg.IO.ICreateStreamProvider 接口,将用于获得输出流。
转换(SVGDocument, PdfSaveOptions, 字符串)
转换 svg 源到 pdf. 结果是 pdf 文件。
public static void ConvertSVG(SVGDocument source, PdfSaveOptions options, string outputPath)
Parameters
source
SVGDocument
转换源。
options
PdfSaveOptions
转换选项。
outputPath
string
输出文件路径。
转换(URL, PdfSaveOptions, 字符串)
转换 svg 源到 pdf. 结果是 pdf 文件。
public static void ConvertSVG(Url url, PdfSaveOptions options, string outputPath)
Parameters
url
Url
文件URL。
options
PdfSaveOptions
转换选项。
outputPath
string
输出文件路径。
转换(Url, 设置, PdfSaveOptions, string)
转换 svg 源到 pdf. 结果是 pdf 文件。
public static void ConvertSVG(Url url, Configuration configuration, PdfSaveOptions options, string outputPath)
Parameters
url
Url
文件URL。
configuration
Configuration
环境配置。
options
PdfSaveOptions
转换选项。
outputPath
string
输出文件路径。
转换(字符串,PdfSaveOptions,字符串)
转换 svg 源到 pdf. 结果是 pdf 文件。
public static void ConvertSVG(string sourcePath, PdfSaveOptions options, string outputPath)
Parameters
sourcePath
string
Svg 文件源路径. 它将与当前目录路径相结合,形成一个绝对的 URL。
options
PdfSaveOptions
转换选项。
outputPath
string
输出文件路径。
转换(序列, 配置, PdfSaveOptions, 序列)
转换 svg 源到 pdf. 结果是 pdf 文件。
public static void ConvertSVG(string sourcePath, Configuration configuration, PdfSaveOptions options, string outputPath)
Parameters
sourcePath
string
Svg 文件源路径. 它将与当前目录路径相结合,形成一个绝对的 URL。
configuration
Configuration
环境配置。
options
PdfSaveOptions
转换选项。
outputPath
string
输出文件路径。
转换(字符串, 字符串, PdfSaveOptions, 字符串)
转换 svg 源到 pdf. 结果是 pdf 文件。
public static void ConvertSVG(string content, string baseUri, PdfSaveOptions options, string outputPath)
Parameters
content
string
Inline string svg 内容。
baseUri
string
文档的基 URI 将与当前的目录路径相结合,形成一个绝对的 URL。
options
PdfSaveOptions
转换选项。
outputPath
string
输出文件路径。
转换(字符串, 字符串, 配置, PdfSaveOptions, 字符串)
转换 svg 源到 pdf. 结果是 pdf 文件。
public static void ConvertSVG(string content, string baseUri, Configuration configuration, PdfSaveOptions options, string outputPath)
Parameters
content
string
Inline string svg 内容。
baseUri
string
文档的基 URI 将与当前的目录路径相结合,形成一个绝对的 URL。
configuration
Configuration
环境配置。
options
PdfSaveOptions
转换选项。
outputPath
string
输出文件路径。
转换(SVGDocument, PdfSaveOptions, ICreateStreamProvider)
转换 svg 源到 pdf. 结果是 pdf 文件。
public static void ConvertSVG(SVGDocument document, PdfSaveOptions options, ICreateStreamProvider provider)
Parameters
document
SVGDocument
转换源。
options
PdfSaveOptions
转换选项。
provider
ICreateStreamProvider
实施 Aspose.Svg.IO.ICreateStreamProvider 接口,将用于获得输出流。
转换(Url, PdfSaveOptions, ICreateStream提供商)
转换 svg 源到 pdf. 结果是 pdf 文件。
public static void ConvertSVG(Url url, PdfSaveOptions options, ICreateStreamProvider provider)
Parameters
url
Url
文件URL。
options
PdfSaveOptions
转换选项。
provider
ICreateStreamProvider
实施 Aspose.Svg.IO.ICreateStreamProvider 接口,将用于获得输出流。
转换(URL, 配置, PdfSaveOptions, ICreateStreamProvider)
转换 svg 源到 pdf. 结果是 pdf 文件。
public static void ConvertSVG(Url url, Configuration configuration, PdfSaveOptions options, ICreateStreamProvider provider)
Parameters
url
Url
文件URL。
configuration
Configuration
环境配置。
options
PdfSaveOptions
转换选项。
provider
ICreateStreamProvider
实施 Aspose.Svg.IO.ICreateStreamProvider 接口,将用于获得输出流。
转换(字符串, PdfSaveOptions, ICreateStreamProvider)
转换 svg 源到 pdf. 结果是 pdf 文件。
public static void ConvertSVG(string sourcePath, PdfSaveOptions options, ICreateStreamProvider provider)
Parameters
sourcePath
string
Svg 文件源路径. 它将与当前目录路径相结合,形成一个绝对的 URL。
options
PdfSaveOptions
转换选项。
provider
ICreateStreamProvider
实施 Aspose.Svg.IO.ICreateStreamProvider 接口,将用于获得输出流。
转换(字符串, 配置, PdfSaveOptions, ICreateStreamProvider)
转换 svg 源到 pdf. 结果是 pdf 文件。
public static void ConvertSVG(string sourcePath, Configuration configuration, PdfSaveOptions options, ICreateStreamProvider provider)
Parameters
sourcePath
string
Svg 文件源路径. 它将与当前目录路径相结合,形成一个绝对的 URL。
configuration
Configuration
环境配置。
options
PdfSaveOptions
转换选项。
provider
ICreateStreamProvider
实施 Aspose.Svg.IO.ICreateStreamProvider 接口,将用于获得输出流。
转换(列, 列, PdfSaveOptions, ICreateStreamProvider)
转换 svg 源到 pdf. 结果是 pdf 文件。
public static void ConvertSVG(string content, string baseUri, PdfSaveOptions options, ICreateStreamProvider provider)
Parameters
content
string
源文件内容。
baseUri
string
文档的基 URI 将与当前的目录路径相结合,形成一个绝对的 URL。
options
PdfSaveOptions
转换选项。
provider
ICreateStreamProvider
实施 Aspose.Svg.IO.ICreateStreamProvider 接口,将用于获得输出流。
转换(字符串, 字符串, 配置, PdfSaveOptions, ICreateStreamProvider)
转换 svg 源到 pdf. 结果是 pdf 文件。
public static void ConvertSVG(string content, string baseUri, Configuration configuration, PdfSaveOptions options, ICreateStreamProvider provider)
Parameters
content
string
Inline string svg 内容。
baseUri
string
文档的基 URI 将与当前的目录路径相结合,形成一个绝对的 URL。
configuration
Configuration
环境配置。
options
PdfSaveOptions
转换选项。
provider
ICreateStreamProvider
实施 Aspose.Svg.IO.ICreateStreamProvider 接口,将用于获得输出流。
转换(SVGDocument, ImageSaveOptions, 字符串)
将 svg 文档转换为图像. 结果是图像文件。
public static void ConvertSVG(SVGDocument source, ImageSaveOptions options, string outputPath)
Parameters
source
SVGDocument
转换源。
options
ImageSaveOptions
转换选项。
outputPath
string
输出文件路径。
转换(URL, ImageSaveOptions, 字符串)
将 svg 文档转换为图像. 结果是图像文件。
public static void ConvertSVG(Url url, ImageSaveOptions options, string outputPath)
Parameters
url
Url
文件URL。
options
ImageSaveOptions
转换选项。
outputPath
string
输出文件路径。
转换(URL, 设置, ImageSaveOptions, string)
将 svg 文档转换为图像. 结果是图像文件。
public static void ConvertSVG(Url url, Configuration configuration, ImageSaveOptions options, string outputPath)
Parameters
url
Url
文件URL。
configuration
Configuration
环境配置。
options
ImageSaveOptions
转换选项。
outputPath
string
输出文件路径。
转换(序列, ImageSaveOptions, 序列)
将 svg 文档转换为图像. 结果是图像文件。
public static void ConvertSVG(string sourcePath, ImageSaveOptions options, string outputPath)
Parameters
sourcePath
string
Svg 文件源路径. 它将与当前目录路径相结合,形成一个绝对的 URL。
options
ImageSaveOptions
转换选项。
outputPath
string
输出文件路径。
转换(序列, 配置, ImageSaveOptions, 序列)
将 svg 文档转换为图像. 结果是图像文件。
public static void ConvertSVG(string sourcePath, Configuration configuration, ImageSaveOptions options, string outputPath)
Parameters
sourcePath
string
Svg 文件源路径. 它将与当前目录路径相结合,形成一个绝对的 URL。
configuration
Configuration
环境配置。
options
ImageSaveOptions
转换选项。
outputPath
string
输出文件路径。
转换(字符串,字符串, ImageSaveOptions,字符串)
将 svg 文档转换为图像. 结果是图像文件。
public static void ConvertSVG(string content, string baseUri, ImageSaveOptions options, string outputPath)
Parameters
content
string
Inline string svg 内容。
baseUri
string
文档的基 URI 将与当前的目录路径相结合,形成一个绝对的 URL。
options
ImageSaveOptions
转换选项。
outputPath
string
输出文件路径。
转换(字符串, 字符串, 配置, ImageSaveOptions, 字符串)
将 svg 文档转换为图像. 结果是图像文件。
public static void ConvertSVG(string content, string baseUri, Configuration configuration, ImageSaveOptions options, string outputPath)
Parameters
content
string
Inline string svg 内容。
baseUri
string
文档的基 URI 将与当前的目录路径相结合,形成一个绝对的 URL。
configuration
Configuration
环境配置。
options
ImageSaveOptions
转换选项。
outputPath
string
输出文件路径。
转换(SVGDocument, ImageSaveOptions, ICreateStreamProvider)
转换 svg 源到图像. 结果是图像文件。
public static void ConvertSVG(SVGDocument document, ImageSaveOptions options, ICreateStreamProvider provider)
Parameters
document
SVGDocument
转换源。
options
ImageSaveOptions
转换选项。
provider
ICreateStreamProvider
实施 Aspose.Svg.IO.ICreateStreamProvider 接口,将用于获得输出流。
转换(URL, ImageSaveOptions, ICreateStream提供商)
转换 svg 源到图像. 结果是图像文件。
public static void ConvertSVG(Url url, ImageSaveOptions options, ICreateStreamProvider provider)
Parameters
url
Url
文件URL。
options
ImageSaveOptions
转换选项。
provider
ICreateStreamProvider
实施 Aspose.Svg.IO.ICreateStreamProvider 接口,将用于获得输出流。
转换(URL, 设置, ImageSaveOptions, ICreateStreamProvider)
转换 svg 源到图像. 结果是图像文件。
public static void ConvertSVG(Url url, Configuration configuration, ImageSaveOptions options, ICreateStreamProvider provider)
Parameters
url
Url
文件URL。
configuration
Configuration
环境配置。
options
ImageSaveOptions
转换选项。
provider
ICreateStreamProvider
实施 Aspose.Svg.IO.ICreateStreamProvider 接口,将用于获得输出流。
转换(字符串, ImageSaveOptions, ICreateStreamProvider)
转换 svg 源到图像. 结果是图像文件。
public static void ConvertSVG(string sourcePath, ImageSaveOptions options, ICreateStreamProvider provider)
Parameters
sourcePath
string
Svg 文件源路径. 它将与当前目录路径相结合,形成一个绝对的 URL。
options
ImageSaveOptions
转换选项。
provider
ICreateStreamProvider
实施 Aspose.Svg.IO.ICreateStreamProvider 接口,将用于获得输出流。
转换(字符串, 配置, ImageSaveOptions, ICreateStreamProvider)
转换 svg 源到图像. 结果是图像文件。
public static void ConvertSVG(string sourcePath, Configuration configuration, ImageSaveOptions options, ICreateStreamProvider provider)
Parameters
sourcePath
string
Svg 文件源路径. 它将与当前目录路径相结合,形成一个绝对的 URL。
configuration
Configuration
环境配置。
options
ImageSaveOptions
转换选项。
provider
ICreateStreamProvider
实施 Aspose.Svg.IO.ICreateStreamProvider 接口,将用于获得输出流。
转换(序列,序列, ImageSaveOptions, ICreateStreamProvider)
转换 svg 源到图像. 结果是图像文件。
public static void ConvertSVG(string content, string baseUri, ImageSaveOptions options, ICreateStreamProvider provider)
Parameters
content
string
Inline string svg 内容。
baseUri
string
文档的基 URI 将与当前的目录路径相结合,形成一个绝对的 URL。
options
ImageSaveOptions
转换选项。
provider
ICreateStreamProvider
实施 Aspose.Svg.IO.ICreateStreamProvider 接口,将用于获得输出流。
转换(字符串, 字符串, 配置, ImageSaveOptions, ICreateStreamProvider)
转换 svg 源到图像. 结果是图像文件。
public static void ConvertSVG(string content, string baseUri, Configuration configuration, ImageSaveOptions options, ICreateStreamProvider provider)
Parameters
content
string
Inline string svg 内容。
baseUri
string
文档的基 URI 将与当前的目录路径相结合,形成一个绝对的 URL。
configuration
Configuration
环境配置。
options
ImageSaveOptions
转换选项。
provider
ICreateStreamProvider
实施 Aspose.Svg.IO.ICreateStreamProvider 接口,将用于获得输出流。