Hi,
I’m unable to get all text from shapes on slides 6, 7 and 8 in the attached file. And also, if you just load and save the presentation, shapes on slides 6, 7 and 8 become pictures.
Here’s the code:
Presentation presentation = new Presentation("test.pptx");
ISlideCollection slides = presentation.getSlides();
for (int i = 5; i < slides.size(); i++) {
IShapeCollection shapes = slides.get_Item(i).getShapes();
System.out.println("Slide number: " + i);
for (int j = 0; j < shapes.size(); j++) {
IAutoShape shape = (IAutoShape) shapes.get_Item(j);
System.out.println("Shape ord. number: " + j);
System.out.println("Shape text: " + shape.getTextFrame().getText());
}
System.out.println("");
}
I’m using Aspose.Slides for Java 18.2.
Can you check this?
Thanks,
Zeljko
test.pptx.zip (299.9 KB)