Spire.Presentation | 新闻
|
028-81705109
|
|
微信扫一扫
|

在线编辑/WebAPI

Spire.Presentation 8.12.2 已发布。本次更新新增支持将母版页转换为图片,同时增强了 PPT 到 PDF 的转换功能。此外,改版本还修复了改变图表标签的位置后效果不正确的问题。详情请阅读以下内容。 新功能: 支持将母版页转换为图片。 Presentation ppt = new Presentation(); ppt.LoadFromFile("1.pptx"); for (int i = 0; i < ppt.Masters[0].Layouts.Count; i++) { Image image = ppt.Masters[0].Layouts[i].SaveAsImage(); String fileName = String.Format("{0}.png", i); image.Save(fileName, System.Drawing.Imaging.ImageFormat.Png);…
Spire.Presentation 8.11.1 已发布。本次更新新增支持多项功能,如获取形状中文本区域的高度和宽度以及获取形状中多行的文本。此外,本次更新还修复了执行 shape.TextFrame.GetTextLocation() 方法时程序抛出 System.InvalidCastException 异常的问题。详情请阅读以下内容。 新功能: 支持转换形状到SVG时保持形状相对幻灯片的位置信息。 byte[] svgByte = shape.SaveAsSvgInSlide(); FileStream fs = new FileStream("shapePath_" + num + ".svg", FileMode.Create); fs.Write(svgByte, 0, svgByte.Length); fs.Close(); 支持获取形状中的文本区域的高度和宽度。 IAutoShape autoShape = shape as IAutoShape; SizeF size…
Spire.Presentation 8.10.2已发布。该版本新增支持获取形状内文本的位置信息的功能。同时也支持获取形状中文本的“Ascent”和“Descent”属性和将形状转换为SVG格式。此外,还修复了将PPT转换为SVG后,用浏览器打开SVG文件时出现空白的问题。详情请阅读以下内容。 新功能: 支持获取形状内文本的位置信息。 Presentation ppt = new Presentation(); ppt.LoadFromFile(inputFile); StringBuilder sb = new StringBuilder(); ISlide slide = ppt.Slides[0]; for (int i = 0; i < slide.Shapes.Count; i++) { IShape shape = slide.Shapes[i]; if (shape is…
Spire.Presentation 8.9.4 已发布。本次更新新增支持设置幻灯片自动切换的时间以及设置和读取渐变停止样式的透明度和亮度。同时,该版本还增强了幻灯片到图片的转换。一些已知问题也在该版本种得到修复,如获取多边形的角坐标集合不完整的问题。详情请阅读以下内容。 新功能: 支持设置自动切换幻灯片的时间。 Presentation ppt = new Presentation(); ppt.LoadFromFile("input.pptx"); ppt.Slides[0].SlideShowTransition.AdvanceAfterTime = 1000; ppt.Slides[1].SlideShowTransition.SelectedAdvanceAfterTime = false; ppt.SaveToFile("output.pptx", FileFormat.Pptx2013); ppt.Dispose(); 优化Radial Gradient Style类型下所有选项的名字,将原有的选项标记为废弃,新增了和MS Powerpoint工具里一样的选项。 原有的项: FromCorner1 FromCorner2 FromCorner3 FromCorner4 新增的项: FromTopLeftCorner FromBottomLeftCorner FromTopRightCorner FromBottomRightCorner 支持设置和读取渐变停止样式的透明度和亮度。 Presentation…