原創|產品更新|編輯:李顯亮|2020-08-24 10:49:08.020|閱讀 195 次
概述:PDF文件格式轉換處理控件Spire.PDF Java和.NET版8月同步更新,一起來看看有哪些新增功能吧!
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
近日,我們更新了.NET平臺Spire.Presentation v5.8.1 2020年8月更新,此版本支持添加部分,設置SmartArt節點的輪廓線和SmartArt節點之間的線的樣式,并修復了將PPT轉換為PDF時出現的問題。
下載Spire.Presentation for .NET最新版
與此同時Java平臺Spire.Presentation迎來了8月的又一次更新,該版本支持更新PPT文檔中的Video視頻數據, 同時支持獲取Audio和Video的PartName屬性及強調類型動畫的Amount屬性。除此之外,它還修復了一些PPT轉PDF、獲取/設置動畫、保存文檔時出現的問題。
下載Spire.Presentation for Java最新版
新功能
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; }
Bug修復
新功能
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);
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(); } }
for (int i = 0; i < slide.getTimeline().getMainSequence().getCount(); i++) { AnimationEffect animationEffect = slide.getTimeline().getMainSequence().get(i); AnimationAmountType amount = animationEffect.getAmount(); }
優化
Bug修復
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn