Hi,
I am getting the following exception:
java.lang.ClassCastException: com.aspose.slides.pptx.GradientShapeEx cannot be cast to com.aspose.slides.obfuscated.agt
at com.aspose.slides.FillParam.do(SourceFile:323)
at com.aspose.slides.FillParam.if(SourceFile:123)
at com.aspose.slides.FillParam.(SourceFile:101)
at com.aspose.slides.pptx.BaseSlideEx.for(SourceFile:206)
at com.aspose.slides.pptx.SlideEx.do(SourceFile:161)
at com.aspose.slides.pptx.SlideEx.getThumbnail(SourceFile:263)
The snippet of code that is generating this exception is:
for (int i = 0; i < slides.size(); i++) {
SlideEx sl = slides.get(i);
BufferedImage image = sl.getThumbnail(1.0f, 1.0f);
…
}
The pptx file causing the exception is attached.
And, the versions of jar files I am using are:
aspose-metafiles-1.6.1.jar
aspose-slides-2.2.0.jar
Dear James,
I have tried to generate the slide thumbnails using Aspose.Slides for Java 2.3.0 and have successfully been able to generate the thumbnails. For your kind reference, I have attached the generated slide thumbnails. Please proceed to download section to download the latest release of Aspose.Slides for Java 2.3.0.
Thanks and Regards,
Hi Mudassir,
Excellent. Thank you for the pointer to the newer Aspose.Slides version. I’ve downloaded and test it and it works great!
Thanks
Jamse