如何把PPT转换成svg文件

mayangbao 2017-08-04 05:19:42
如何把PPT转换成svg文件
...全文
1733 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
fighter222 2017-12-18
  • 打赏
  • 举报
回复
C# //初始化Presentation实例 Presentation presentation = new Presentation(); //加载一个PowerPoint文档 presentation.LoadFromFile("模板.pptx"); //将PowerPoint转换为SVG图像并以字节形式存储在列队中 Queue<byte[]> svgBytes = presentation.SaveToSVG(); //获取列队中字节数组生成SVG文件 int len = svgBytes.Count; for (int i = 0; i < len; i++) { FileStream fs = new FileStream(string.Format("SVG-{0}.svg", i), FileMode.Create); byte[] bytes = svgBytes.Dequeue(); fs.Write(bytes, 0, bytes.Length); presentation.Dispose(); }

5,139

社区成员

发帖
与我相关
我的任务
社区描述
其他开发语言 Office开发/ VBA
社区管理员
  • Office开发/ VBA社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧