Yegor: Awesome. Thanks.
-Lou Yegor Kozlov <[email protected]> wrote on 01/16/2012 01:45:39 AM: > Yegor Kozlov <[email protected]> > 01/16/2012 01:47 AM > > Please respond to > "POI Users List" <[email protected]> > > To > > POI Users List <[email protected]> > > cc > > Subject > > Re: XSLF copy slides > > Below is a simple app that merges multiple .pptx presentations together: > > public class MergePresentations { > > public static void main(String args[]) throws Exception { > XMLSlideShow ppt = new XMLSlideShow(); > > for(String arg : args){ > FileInputStream is = new FileInputStream(arg); > XMLSlideShow src = new XMLSlideShow(is); > is.close(); > > for(XSLFSlide srcSlide : src.getSlides()){ > ppt.createSlide().importContent(srcSlide); > } > } > > FileOutputStream out = new FileOutputStream("merged.pptx"); > ppt.write(out); > out.close(); > } > > } > > I'm going to add this code in the XSLF cookbook. > > Yegor > > On Mon, Jan 16, 2012 at 4:23 AM, <[email protected]> wrote: > > Any simple way to copy slides from one presentation to another? I'll even > > take tips for a not-so-easy way. > > > > I saw a post about removing the slides that you don't want, but this > > method will be complex for me in that I also have to reorder. > > > > Thanks, > > Lou > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >
