Spire.Presentation

Spire.Presentation for Java 2.5.4 supports to add animations for specific paragraphs

We're pleased to announce that Spire.Presentation for Java 2.5.4 is released today. This version supports to add animations for specific paragraphs through the method setStartEndParagraphs, and fixes the bug that the executable jar packaged from a java project failed to execute.

New Features:

  • Adds a new method setStartEndParagraphs supporting to add animations for specific paragraphs.
  • 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();
    

Bug Fixes:

  • Fixes the issue that after packaging java project as an executable jar, the jar package failed to execute.

Click the link below to download Spire.Presentation for Java 2.5.4: