Spire.Presentation 6.1已发布。该本支持嵌入zip对象到PPTX文件;支持加载和打印包含数学公式的PPT/PPTX文档以及转换到其他文档格式。此外,该版本还修复了复制组合图形时出现的问题。详情请阅读以下内容。
新功能:
- 支持嵌入zip对象到PPTX文件。(03ppt尚不支持此功能)
String zipPath= "C:/test.zip";
Presentation ppt = new Presentation();
byte[] data = File.ReadAllBytes(zipPath);
Rectangle rec = new Rectangle(80, 60, 100, 100);
//The first parameter needs to be passed the complete file name
IOleObject ole = ppt.Slides[0].Shapes.AppendOleObject("test.zip", data, rec);
ole.ProgId = "Package";
Image image = Image.FromFile(@"E:\demoProducts\Image\logo.png");
IImageData oleImage = ppt.Images.Append(image);
ole.SubstituteImagePictureFillFormat.Picture.EmbedImage = oleImage;
ppt.SaveToFile(@"result.pptx", Spire.Presentation.FileFormat.Pptx2013);
问题修复:
- 修复了复制组合图形时里面的形状大小改变的问题。
- 修复了给组合图形中一个形状修改值后该形状的位置改变的问题。
- 修复了打印多个幻灯片到一页上,内容被拉伸的问题。
- 修复了克隆一个形状到另外一个幻灯片里后当修改形状的高度时它的位置改变的问题。
获取Spire.Presentation 6.1请点击:
https://www.e-iceblue.cn/Downloads/Spire-Presentation-NET.html