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();…