Free Support Forum - aspose.com

getThumbnail failed, Chat in MasterSlide or LayoutSlide


#1

Use slides-18.12-jdk.jar, get thumbnail with chart witch in MasterSlide or LayoutSlide will throw ClassCastException. Chart in Slide is fine. Code is blow

for (int i = 0; i < presentation.getMasters().size(); i++) {
IBaseSlide baseSlide = presentation.getMasters().get_Item(i);
for (int j = 0; j < baseSlide.getShapes().size(); j++) {
IShape shape = baseSlide.getShapes().get_Item(j);
if (shape instanceof IChart) {
BufferedImage image = shape.getThumbnail();
}
}
}

C0A807FAC16308655A03CDBBA79B0FE1.jpg (161.1 KB)


#2

@zr1,

I have observed your comments. Can you please share source file so that we may further investigate to help you out. Also please share environment details with us.


#3


source is here, tranks!


#4

@zr1,

I have worked with sample presentation shared by you using Aspose.Slides for Java 18.12 and have been able to observe the issue specified. An issue with ID SLIDESJAVA-37541 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 notified once the issue will be fixed.