原創(chuàng)|產(chǎn)品更新|編輯:李顯亮|2020-09-25 09:43:00.890|閱讀 213 次
概述:PPT文件格式處理控件Spire..Presentation Java和.NET版9月同步更新,一起來(lái)看看有哪些新增功能吧!
# 界面/圖表報(bào)表/文檔/IDE等千款熱門(mén)軟控件火熱銷售中 >>
近日,我們更新了.NET平臺(tái)Spire.Presentation v5.9.5 2020年9月更新,該版本支持對(duì)組合圖形取消組合和GroupShapes方法返回GroupShape對(duì)象,并新增了GetPlaceholderShapes方法來(lái)通過(guò)占位符獲取幻燈片母版版式中的形狀的功能。此外,該版本還修復(fù)了轉(zhuǎn)換加載PPTX文檔,拷貝幻燈片等情況時(shí)出現(xiàn)的問(wèn)題。
下載Spire.Presentation for .NET最新版
與此同時(shí)Java平臺(tái)Spire.Presentation迎來(lái)了9月的又一次更新,該版本支持獲取動(dòng)畫(huà)的效果,同時(shí)也修復(fù)了.ppt轉(zhuǎn)pdf時(shí)出現(xiàn)的問(wèn)題。
下載Spire.Presentation for Java最新版
新功能
GroupShape groupShape = presentation.Slides[0].Shapes[0] as GroupShape; presentation.Slides[0].Ungroup(groupShape);
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); } } }
ArrayList groupShapeList = new ArrayList(); groupShapeList.Add(shape1); groupShapeList.Add(shape2); groupShapeList.Add(shape3); GroupShape groupshape = ppt.Slides[0].GroupShapes(groupShapeList);
Bug修復(fù)
新功能
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); //預(yù)設(shè)類型,比如Entrance,Emphasis,Exit,Path String presetClassType = animationEffect.getPresetClassType().getName(); //獲取動(dòng)畫(huà)效果類型 AnimationEffectType animationEffectType= animationEffect.getAnimationEffectType(); //獲取目標(biāo)Shape Shape shape = animationEffect.getShapeTarget(); //獲取動(dòng)畫(huà)效果子類型 String subType = animationEffect.getSubtype().getName(); //獲取Color Color color = animationEffect.getColor(); //當(dāng)動(dòng)畫(huà)效果類型為Faded_Zoom時(shí),獲取vanishing point(消失點(diǎn)) if (animationEffectType.equals(AnimationEffectType.FADED_ZOOM)) { String vanishingPointName = animationEffect.getVanishingPoint().getName(); } //獲取WAVE動(dòng)畫(huà)效果 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修復(fù)
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請(qǐng)務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請(qǐng)郵件反饋至chenjj@fc6vip.cn