Free Support Forum -

Pictur from lslide

Hi Aspose Team,

I am using Aspose from long time and thanks for all your support.

I just want convert PPT file in to image files, it means like we have a PPT which is having 5 slides, and i want create 5 images of 5 slides.

Please help me on this.

Thanks & Regards
Setu Agrawal

Hi Setu,

Thanks for your interest in Aspose.Slides.

Please use the code snippet below in order to generate thumbnail images of an each slide in PPT presentation. Please also visit this documentation link for further information.



//Instantiate a Presentation object that represents a PPT file
Presentation pres = new Presentation(new FileInputStream(new File("C:\\ppt\\ImageSlide.ppt")));

// Loop for iterating each slide

for(int i=1;i<=pres.getSlides().size();i++)
//Accessing a slide using its slide position
Slide slide = pres.getSlideByPosition(i);

//Getting the thumbnail image of the slide of a specified size
BufferedImage image=slide.getThumbnail(new Dimension(290,230));

//Saving the thumbnail image in jpeg format
ImageIO.write(image,"jpeg", new File("C:\\ppt\\thumbnail"+i+".jpg"));

catch(Exception ex)


Thanks and Regards,