Have a look at this example:
https://svn.apache.org/repos/asf/poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/MergePresentations.java

To split a .pptx presentation into just follow the pattern:

            int num = 0;
            for(XSLFSlide srcSlide : src.getSlides()){
                XMLSlideShow ppt = new XMLSlideShow();
                ppt.createSlide().importContent(srcSlide);

                FileOutputStream out = new FileOutputStream("slide-" +
num +".pptx");
                ppt.write(out);
                out.close();

                num++;
            }

Yegor
On Wed, Apr 11, 2012 at 5:13 AM, sp0065 <[email protected]> wrote:
> Hello,
>
> It seems like Apache POI is a great API. But I am a beginner so I am looking
> for some help.
>
> I need to split input pptx and possibly ppt files into a set of slides each
> stored in the separate output pptx (ppt) file. When input file gets uploaded
> to a directory program will be called from my main program (written in PHP)
> and do the split.
>
> Is it possible to do it with Apache POI? Code examples would help. May be I
> need to delete all slides but one an then repeat for each selected slide?
>
> Thank you!
>
> --
> View this message in context: 
> http://apache-poi.1045710.n5.nabble.com/How-to-split-input-pptx-file-into-a-set-of-single-slide-files-tp5631543p5631543.html
> Sent from the POI - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to