Spire.Presentation for Java 2.5.4 今天正式发布了。该版本支持通过setStartEndParagraphs方法为指定段落添加动画,并修复了打包java项目为可执行jar包后jar包无法执行的问题。 新功能: 添加setStartEndParagraphs方法为指定段落添加动画。 Presentation ppt = new Presentation(); ppt.loadFromFile("test.pptx"); IAutoShape shape = (IAutoShape)ppt.getSlides().get(0).getShapes().get(0); AnimationEffect animation = shape.getSlide().getTimeline().getMainSequence().addEffect(shape, AnimationEffectType.FLY); animation.setStartEndParagraphs(2,3); IAutoShape shape2 = (IAutoShape)ppt.getSlides().get(0).getShapes().get(1); AnimationEffect animation2 = shape.getSlide().getTimeline().getMainSequence().addEffect(shape, AnimationEffectType.FADED_ZOOM); animation2.setStartEndParagraphs(0,0); ppt.saveToFile("result.pptx", FileFormat.PPTX_2013); ppt.dispose();…