Please browse the files in the following package.
text.pptx.zip (785.9 KB)
When I run the code, I guess we can get the animation array, but the array is empty.
Presentation presentation = new Presentation(input);
IEffect[] effects = presentation.getSlides().get_Item(7).getTimeline().getMainSequence().getEffectsByParagraph(((AutoShape)presentation.getSlides().get_Item(7).getShapes().get_Item(0)).getTextFrame().getParagraphs().get_Item(0));
text animation.png (1.4 MB)
How can I get the text paragraph animation properties in the above screenshot? Thank you for any help.
OS: macOS 13.0.1
JVM: OpenJDK 64-Bit Server VM (17.0.1+12-39, mixed mode, emulated-client, sharing)
Java: version 17.0.1, vendor Oracle Corporation
sdk: aspose.slides-22.11-fx
@oscarstar,
Thank you for describing the issue.
I’ve added a ticket with ID SLIDESJAVA-39058 to our issue-tracking system. Our development team will investigate the case. We will inform you of any progress.
Could you please list the properties you are interested in?
Presentation pres = new Presentation("Presentation.pptx");
try {
ISequence sequence = pres.getSlides().get_Item(0).getTimeline().getMainSequence();
IAutoShape autoShape = (IAutoShape)pres.getSlides().get_Item(0).getShapes().get_Item(0);
for (IParagraph paragraph : autoShape.getTextFrame().getParagraphs())
{
IEffect[] effects = sequence.getEffectsByParagraph(paragraph);
if (effects.length > 0)
System.out.println("Paragraph \"" + paragraph.getText() + "\" has " + effects[0].getType() + " effect.");
}
} finally {
pres.dispose();
}
Thank you for your attention and reply. As shown in the above code, I want to get the animation of each text paragraph and when to run them.
@oscarstar,
Thank you for the details.
The issues you found earlier (filed as SLIDESJAVA-39058) have been fixed in Aspose.Slides for Java 23.3 (JAR).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.