PDF文件格式转换处理控件Spire.PDF Java和.NET版8月同步更新,一起来看看有哪些新增功能吧!
近日,我们更新了.NET平台Spire.Presentation v5.8.1 2020年8月更新,此版本支持添加部分,设置SmartArt节点的轮廓线和SmartArt节点之间的线的样式,并修复了将PPT转换为PDF时出现的问题。
与此同时Java平台Spire.Presentation迎来了8月的又一次更新,该版本支持更新PPT文档中的Video视频数据, 同时支持获取Audio和Video的PartName属性及强调类型动画的Amount属性。除此之外,它还修复了一些PPT转PDF、获取/设置动画、保存文档时出现的问题。
*这么优秀的国产工具怎能错过呢!在线下单专享“一口价”,立即购买!想要获取更多福利的朋友可以咨询在线客服哦~
Spire.Presentation for .NET更新内容
新功能
- 支持添加节
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) { } }
- 支持设置SmartArt节点轮廓线条样式
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; }
- 支持设置SmartArt节点之间的连接线条样式
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; }
Bug修复
- 修复了转换PPT到PDF内容后部分丢失的问题
Spire.Presentation for Java更新内容
新功能
-
支持更新PPT文档中的Video视频数据。
File file = new File("videoPath"); FileInputStream fileInputStream = new FileInputStream(file); byte[] data = new byte[(int)file.length()]; fileInputStream.read(data); VideoCollection videos = presentation.getVideos(); VideoData videoData = videos.append(data); IVideo iVideo = (IVideo) presentation.getSlides().get(0).getShapes().get(0); iVideo.setEmbeddedVideoData(videoData);
-
支持获取Audio和Video的PartName属性。
for (int i = 0; i < presentation.getSlides().getCount(); i++) { ISlide slide = presentation.getSlides().get(i); for (int j = 0; j < slide.getShapes().getCount(); j++) { IShape shape = slide.getShapes().get(j); if (shape instanceof IAudio) { String audioPartName = ((IAudio) shape).getData().getPartName(); } if (shape instanceof IVideo) { String videoPartName = ((IVideo) shape).getEmbeddedVideoData().getPartName(); } }
-
支持获取强调类型动画的Amount属性。
for (int i = 0; i < slide.getTimeline().getMainSequence().getCount(); i++) { AnimationEffect animationEffect = slide.getTimeline().getMainSequence().get(i); AnimationAmountType amount = animationEffect.getAmount(); }
优化
- 优化了生成的PPT文档大小。
Bug修复
- 修复了PPT转PDF,线条位置不正确的问题。
- 修复了设置文本下划线不起作用的问题。
- 修复了创建散点直线类型的图表含有标记的问题。
- 修复了保存文档抛”NullReferenceException”的问题。
- 修复了设置动画期间时间不生效的问题。
- 修复了PPT转PDF抛”NullPointerException”的问题。
- 修复了保存文档和调整幻灯片顺序抛错误”Unknown char: 林”的问题。
- 修复了获取到的动画持续时间不正确的问题。
- 修复了获取动画运动轨迹抛”NullPointerException”的问题。
- 修复了无法获取到PPT动画的问题。
- 修复了插入HTML文本到PPT,br标签不生效的问题。
- 修复了无法获取到PPT动画的Subtype属性的问题。
还想要更多吗可以点击阅读【2020 · E-iceblue最新资源整合】,查找需要的教程资源。如果您有任何疑问或需求,请随时联系客服,我们很高兴为您提供查询和咨询。
标签:
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!