我们很高兴地告诉大家Spire.Presentation for .NET v4.8.5正式发布上线!此版本主要支持插入图片和视频到占位符,支持设置圆角矩形的半径,支持获取指定幻灯片的模板名字。此外,本次更新也修复了加载和转换PowerPoint文档出现的问题,欢迎下载体验。
Spire.Presentation for .NET是专业的 PowerPoint组件,使用该组件,开发者可以在 .NET 平台上对 PowerPoint文档进行生成、读取、写入、修改、转换和打印等操作。
Spire.Presentation for .NET支持 PPT、PPS、PPTX、PPSX 格式的 PowerPoint文档,支持的主要功能有写入文本、插入图片、添加图形、表格、动画效果、音频和视频等元素到幻灯片。Spire.Presentation 也支持将幻灯片转换为 EMF、JPG、TIFF、PDF、XPS、SVG、HTML 格式文件。
我们很高兴地告诉大家Spire.Presentation for .NET v4.8.5正式发布上线!此版本主要支持插入图片和视频到占位符,支持设置圆角矩形的半径,支持获取指定幻灯片的模板名字。此外,本次更新也修复了加载和转换PowerPoint文档出现的问题,具体更新情况如下:>>欢迎免费下载Spire.Presentation for .NET最新试用版
新功能
-
支持插入图片和视频到占位符。
Presentation ppt = new Presentation(); ppt.LoadFromFile("test.pptx"); for (int j=0;j < ppt.Slides.Count;j++) { ISlide slide = (ISlide)ppt.Slides[j]; for (int i=0;i < slide.Shapes.Count;i++) { Shape shape = (Shape)slide.Shapes[i]; switch(shape.Placeholder.Type) { case PlaceholderType.Media: shape.InsertVideo("Video.mp4"); break; case PlaceholderType.Picture: shape.InsertPicture("Logo.png"); break; case PlaceholderType.Chart: shape.InsertChart(ChartType.ColumnClustered); break; case PlaceholderType.Table: shape.InsertTable(3,2); break; case PlaceholderType.Diagram: shape.InsertSmartArt(SmartArtLayoutType.BasicBlockList); break; } } }
-
支持设置圆角矩形的半径。
Presentation presentation = new Presentation();presentation.Slides[0].Shapes.InsertRoundRectangle(0, 60, 90, 100, 200, 36);presentation.Slides[0].Shapes.AppendRoundRectangle(60, 290, 100, 200, 50);presentation.SaveToFile("result.pdf", FileFormat.PDF);presentation.SaveToFile("result.pptx", FileFormat.Pptx2013);
-
支持获取指定幻灯片的模板名字。
Presentation presentation = new Presentation(); presentation.LoadFromFile(file); for (int i = 0; i < presentation.Slides.Count;i++ ) { string name = presentation.Slides[i].Layout.Name; }
Bug修复
- 修复了将PPT转换为SVG的渐变色位置问题。
- 修复了加载文档抛异常问题。
- 修复了保存文档抛异常问题。
- 修复了将PPT转换为图片的内容格式混乱问题。
- 修复了将PPT转换为图像时的内容丢失问题。
- 修复了在Windows 10上保存PPT文件时速度慢的问题。
*想要购买Spire.Presentation及其他系列产品正版授权的朋友可以咨询在线客服哦~

标签:
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!