原創|產品更新|編輯:李顯亮|2020-09-25 09:43:00.890|閱讀 213 次
概述:PPT文件格式處理控件Spire..Presentation Java和.NET版9月同步更新,一起來看看有哪些新增功能吧!
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
近日,我們更新了.NET平臺Spire.Presentation v5.9.5 2020年9月更新,該版本支持對組合圖形取消組合和GroupShapes方法返回GroupShape對象,并新增了GetPlaceholderShapes方法來通過占位符獲取幻燈片母版版式中的形狀的功能。此外,該版本還修復了轉換加載PPTX文檔,拷貝幻燈片等情況時出現的問題。
下載Spire.Presentation for .NET最新版
與此同時Java平臺Spire.Presentation迎來了9月的又一次更新,該版本支持獲取動畫的效果,同時也修復了.ppt轉pdf時出現的問題。
下載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修復
新功能
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修復
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn