We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Convert PowerPoint Slide to PNG in JAVA


Capture.PNG.jpg (189.8 KB)
Currently I use the aspose.slides maven dependency in java. I’m trying to convert the slide to PNG formatted image.

Code usage:
Presentation pres = new Presentation(stream);
ISlide sld = pres.getSlides().get_Item(0);
BufferedImage image = sld.getThumbnail(new Dimension(960, 720));

But I encountered an issue which is attached…

Can you please help me in investigating this issue ?

Capture.PNG.jpg (190 KB)


As per your sample code, it seems you are using Aspose.Slides for Java on premise API instead of Aspose.Slides REST API. So I’m moving your post to on premise API forum.


I have observed the issue shared by you and from stack trace it seems to be some access issue or File not found . Can you please try using latest Aspose.Slides for Java 20.5 on your end and if there is still an issue then please share the source file and Java details with us along with Operating system information.