ToSvg

ToSvg(string)

Presentation转换为SVG。

public static void ToSvg(string presPath)  
参数类型描述
presPathString输入演示文稿的路径

示例

Convert.ToSvg("pres.pptx");  

另请参阅


ToSvg(string, GetOutPathCallback)

Presentation转换为SVG。

public static void ToSvg(string presPath, GetOutPathCallback getOutPath)  
参数类型描述
presPathString输入演示文稿的路径
getOutPathGetOutPathCallback为演示文稿中的每个幻灯片返回SVG输出路径的回调

示例

Convert.ToSvg("pres.pptx", (slide, index) => $"pres_{index}-out.svg");  

另请参阅


ToSvg(Presentation, GetOutPathCallback)

Presentation转换为SVG。

public static void ToSvg(Presentation pres, GetOutPathCallback getOutPath)  
参数类型描述
presPresentation输入演示文稿
getOutPathGetOutPathCallback为演示文稿中的每个幻灯片返回SVG输出路径的回调

示例

using (Presentation pres = new Presentation("input.pptx"))    
{  
    Convert.ToSvg(pres, (slide, index) => $"pres_{index}-out.svg");  
}  

另请参阅


ToSvg(Presentation, ISVGOptions)

Presentation转换为SVG。

public static void ToSvg(Presentation pres, ISVGOptions options)  
参数类型描述
presPresentation输入演示文稿
optionsISVGOptionsSVG导出选项

示例

using (Presentation pres = new Presentation("input.pptx"))    
{  
    Convert.ToSvg(pres, new SVGOptions { VectorizeText = true });  
}  

另请参阅


ToSvg(Presentation, GetOutPathCallback, ISVGOptions)

Presentation转换为SVG。

public static void ToSvg(Presentation pres, GetOutPathCallback getOutPath, ISVGOptions options)  
参数类型描述
presPresentation输入演示文稿
getOutPathGetOutPathCallback为演示文稿中的每个幻灯片返回SVG输出路径的回调
optionsISVGOptionsSVG导出选项

示例

using (Presentation pres = new Presentation("input.pptx"))    
{  
    Convert.ToSvg(pres, (slide, index) => $"pres_{index}-out.svg", new SVGOptions { VectorizeText = true });  
}  

另请参阅