spire.presentation 5.8.1已发布。该版本支持添加节、设置smartart节点轮廓线条样式和节点间的连接线条样式,并修复了将ppt转为pdf时出现的问题。新功能及问题修复详情如下。
新功能:
- 支持添加节
presentation presentation = new presentation();
presentation.loadfromfile(pptfile);
islide slide = presentation.slides[0];
//添加节
presentation.sectionlist.add("section1", slide);
//获取节
section section;
string name;
for (int i = 0; i < presentation.sectionlist.count; i )
{
section = presentation.sectionlist[i];
name = section.name;
foreach (long id in section.slideidlist)
{
}
}
ismartart smartart = presentation.slides[0].shapes[0] as ismartart;
int count =smartart.nodes.count;
ismartartnode node;
for (int i = 0; i < count; i )
{
node = smartart.nodes[i];
node.line.filltype = fillformattype.solid;
node.line.solidfillcolor.color = color.gray;
node.line.width = 2;
}
ismartart smartart = presentation.slides[0].shapes[0] as ismartart;
int count =smartart.nodes.count;
ismartartnode node;
for (int i = 0; i < count; i )
{
node = smartart.nodes[i];
node.linkline.filltype = fillformattype.solid;
node.linkline.solidfillcolor.color = color.gray;
node.linkline.width = 2;
node.linkline.dashstyle = linedashstyletype.systemdash;
}
问题修复:
- 修复了转换ppt到pdf内容后部分丢失的问题
获取spire.presentation 5.8.1,请点击:
https://www.e-iceblue.cn/downloads/spire-presentation-net.html