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

Free Support Forum - aspose.com

Split the Presentation into individual slides and save each slide as individual ppt file?

Hi,

Iam new to this Aspose.Slide.

Basically iam trying to save the slide as .ppt file.

With the following code, i have got the no. of slides from Presentation.

File file1 = new File("D:\\Samp.ppt");

Presentation ppt1 = new Presentation(new FileInputStream(file1));

Slides slides = ppt1.getSlides();

for (int i = 0; i < slides.size(); i++) {

FileOutputStream fos = new FileOutputStream("d://input/slide-" + (i+1) + ".ppt",true );

//Presentation slideData = slides.get(i).getParent();

//slideData.write(fos);

Slide s1= slides.get(i);

//TODO: How to save this s1as slide1.ppt in my local folder.

}

Basically iam looking for write option on Slide.

Could you please anyone suggest me how to do this?

Thanks,

Mohans

Dear Mohans,

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for considering Aspose.Slides for JAVA.

You should see the following thread link. I have updated it with JAVA example code.

Thanks Shakeel Faiz. it really works fine. It helped me a lot

Thanks for your help.

Mohans