Free Support Forum - aspose.com

Can't access slide text (1143)

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)

@Zeljko,

I have worked with the presentation file shared by you and have been able to observe the issue specified. An issue with ID SLIDESJAVA-36940 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be automatically notified once the issue will be fixed.

The issues you have found earlier (filed as SLIDESJAVA-36940) have been fixed in this update.