spire. presentation 5.9.5现已发布。该版本支持对组合图形取消组合和groupshapes方法返回groupshape对象,并新增了getplaceholdershapes方法来通过占位符获取幻灯片母版版式中的形状的功能。此外,该版本还修复了转换加载pptx文档,拷贝幻灯片等情况时出现的问题。详情请阅读以下内容。
新功能:
- 支持对组合图形取消组合。
groupshape groupshape = presentation.slides[0].shapes[0] as groupshape;
presentation.slides[0].ungroup(groupshape);
placeholder placeholder = presentation.slides[1].shapes[0].placeholder;
ishape[] shapes = presentation.slides[1].getplaceholdershapes(placeholder);
for (int i = 0; i < shapes.length; i )
{
if (shapes[i] is iautoshape)
{
iautoshape autoshape = shapes[i] as iautoshape;
if (autoshape.textframe != null)
{
console.writeline(autoshape.textframe.text);
}
}
}
arraylist groupshapelist = new arraylist();
groupshapelist.add(shape1);
groupshapelist.add(shape2);
groupshapelist.add(shape3);
groupshape groupshape = ppt.slides[0].groupshapes(groupshapelist);
问题修复:
- 修复了拷贝幻灯片到新文档时抛“documenteditexception”的问题。
- 修复了组合图形后导致图形消失的问题。
- 修复了转换pptx到html抛“nullreferenceexception”的问题。
- 修复了加载pptx文档抛“indexoutofrangeexception”的问题。
- 修复了转换pptx到pdf图表内容不正确的问题。
- 修复了加载受保护的ppt文档抛异常“encrypted presentations are not supported”的问题。
获取spire.presentation 5.9.5,请点击:
https://www.e-iceblue.cn/downloads/spire-presentation-net.html