国产PPT功能开发控件Spire.Presentation Java和.NET版9月同步上线 | 附下载

PPT文件格式处理控件Spire..Presentation Java和.NET版9月同步更新,一起来看看有哪些新增功能吧!

近日,我们更新了.NET平台Spire.Presentation v5.9.5 2020年9月更新,该版本支持对组合图形取消组合和GroupShapes方法返回GroupShape对象,并新增了GetPlaceholderShapes方法来通过占位符获取幻灯片母版版式中的形状的功能。此外,该版本还修复了转换加载PPTX文档,拷贝幻灯片等情况时出现的问题。

与此同时Java平台Spire.Presentation迎来了9月的又一次更新,该版本支持获取动画的效果,同时也修复了.ppt转pdf时出现的问题。

*这么优秀的国产工具怎能错过呢!在线下单专享“一口价”,立即购买!想要获取更多福利的朋友可以咨询在线客服哦~


Spire.Presentation for .NET更新内容

新功能

  • 支持对组合图形取消组合。
    GroupShape groupShape = presentation.Slides[0].Shapes[0] as GroupShape;presentation.Slides[0].Ungroup(groupShape);

  • 新增GetPlaceholderShapes方法来通过占位符获取幻灯片母版版式中的形状。
    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); } } }
  • 支持GroupShapes方法返回GroupShape对象。
    ArrayList groupShapeList = new ArrayList();groupShapeList.Add(shape1);groupShapeList.Add(shape2);groupShapeList.Add(shape3);GroupShape groupshape = ppt.Slides[0].GroupShapes(groupShapeList);

Bug修复

  • 修复了拷贝幻灯片到新文档时抛“DocumentEditException”的问题。
  • 修复了组合图形后导致图形消失的问题。
  • 修复了转换PPTX到HTML抛“NullReferenceException”的问题。
  • 修复了加载PPTX文档抛“IndexOutOfRangeException”的问题。
  • 修复了转换PPTX到PDF图表内容不正确的问题。
  • 修复了加载受保护的PPT文档抛异常“Encrypted presentations are not supported”的问题。

Spire.Presentation for Java更新内容

新功能

  • 支持获取动画的效果。
    Presentation presentation = new Presentation();presentation.loadFromFile("data/animation.pptx");for (int c = 0; c < presentation.getSlides().getCount(); c++) { ISlide slide = presentation.getSlides().get(c); for (int i = 0; i < slide.getTimeline().getMainSequence().getCount(); i++) { AnimationEffect animationEffect = slide.getTimeline().getMainSequence().get(i); //预设类型,比如Entrance,Emphasis,Exit,Path String presetClassType = animationEffect.getPresetClassType().getName(); //获取动画效果类型 AnimationEffectType animationEffectType= animationEffect.getAnimationEffectType(); //获取目标Shape Shape shape = animationEffect.getShapeTarget(); //获取动画效果子类型 String subType = animationEffect.getSubtype().getName(); //获取Color Color color = animationEffect.getColor(); //当动画效果类型为Faded_Zoom时,获取vanishing point(消失点) if (animationEffectType.equals(AnimationEffectType.FADED_ZOOM)) { String vanishingPointName = animationEffect.getVanishingPoint().getName(); } //获取WAVE动画效果 if (animationEffectType.equals(AnimationEffectType.WAVE)) { TextAnimationCollection textAnimations = slide.getTimeline().getTextAnimations(); if (textAnimations.size() > 0) {for (int j = 0; j < textAnimations.size(); j++) { ParagraphBuildType buildType = textAnimations.get(j).getParagraphBuildType(); } } } } }

Bug修复

  • 修复了转换.pptx to pdf程序抛”NullPointerException “的问题。
  • 修复了了转换.pptx to pdf图表坐标轴内容格式不正确的问题。


还想要更多吗可以点击阅读【2020 · E-iceblue最新资源整合】查找需要的教程资源。如果您有任何疑问或需求,请随时联系客服,我们很高兴为您提供查询和咨询
标签:

来源:慧都

声明:本站部分文章及图片转载于互联网,内容版权归原作者所有,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2020年8月22日
下一篇 2020年8月22日

相关推荐

发表回复

登录后才能评论