spire.presentation 6.2.2已发布。该版本支持了替换视频文件的功能并且修复了加载和合并文档ppt文档时出现的问题。
新功能:
- 支持了替换视频文件的功能
presentation ppt= new presentation();
ppt.loadfromfile(inputfile);
videocollection videos = ppt.videos;
foreach (islide sld in ppt.slides)
{
foreach (spire.presentation.shape sp in sld.shapes)
{
if (sp is ivideo)
{
ivideo video = sp as ivideo;
byte[] bts = file.readallbytes("c:/test.mp4");
videodata videodata = videos.append(bts);
video.embeddedvideodata = videodata;
}
}
}
ppt.savetofile(outputfile, fileformat.pptx2013);
问题修复:
- 修复了删除视频所在的shape后保存的pptx文件打开失败的问题
- 修复了多线程下转换ppt文档到图片时图表中的数据标签文本错乱的问题
- 修复了替换smartart中的图片时程序抛 nullreferenceexception 异常的问题
- 修复了加载ppt文件程序抛出 “an object reference is not set to an instance of the object” 的问题
- 修复了复制包含项目符号列表的段落到新的幻灯片时项目符号显示错误的问题
- 修复了添加html文本时程序抛 “{"rgb(255 is not a valid value for int32. (parameter 'htmlcolor')"}” 的问题
- 修复了合并两个pptx文档结果文档很大的问题
获取spire.presentation 6.2.2请点击:
https://www.e-iceblue.cn/downloads/spire-presentation-net.html