Sign In  Sign Up Live-Chat

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

Last post 09-05-2008, 12:16 AM by Mohans. 2 replies.
Sort Posts: Previous Next
  •  09-04-2008, 6:40 AM 142360

    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

     
  •  09-04-2008, 3:36 PM 142483 in reply to 142360

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

    Dear Mohans,

     

    Thanks for considering Aspose.Slides for JAVA.

     

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

    http://www.aspose.com/community/forums/thread/142360.aspx

     


    Many Thanks and Kind Regards,

    Shakeel Faiz
    Support Engineer
    Aspose Tyumen Team
     
  •  09-05-2008, 12:16 AM 142526 in reply to 142483

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

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

    Thanks for your help.

    Mohans

     
View as RSS news feed in XML