Spire.Presentation 4.3.9今天正式发布。新版本添加了给shape中指定的段落添加文字动画这一新功能,并且修复了转换PPT和加载PPT时出现的问题,详情如下:
新功能:
- 支持给shape中指定的段落添加文字动画
Presentation ppt = new Presentation();
ppt.LoadFromFile("test.pptx");
IAutoShape shape = (IAutoShape)ppt.Slides[0].Shapes[0];
AnimationEffect animation = shape.Slide.Timeline.MainSequence.AddEffect(shape, AnimationEffectType.Fly);
animation.SetStartEndParagraphs(2, 3);
IAutoShape shape2 = (IAutoShape)ppt.Slides[0].Shapes[1];
AnimationEffect animation2 = shape.Slide.Timeline.MainSequence.AddEffect(shape2, AnimationEffectType.FadedZoom);
animation2.SetStartEndParagraphs(0, 0);
ppt.SaveToFile("result.pptx", FileFormat.Pptx2010);
ppt.Dispose();
问题修复:
- 修复了转换PPTX到PDF/PPT时内容格式不正确的问题
- 修复了转换PPT到PDF时图表丢失的问题
- 修复了加载PPT文档时抛出InvalidCastException异常的问题
- 修复了修改图表数据源后数据没有正确地更新的问题
获取Spire.Presentation 4.3.9,请点击:
https://www.e-iceblue.cn/Downloads/Spire-Presentation-NET.html