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