I am furthering my investigation into this using your suggestion.  I do 
have a workaround that is pretty simple:  reverse the creation so that 
instead of adding slides to a new presentation, copy the old presentation 
and remove the slides you do not want.  This seems to keep the templates 
in place.

When I get a chance I will check into Yegor's suggestion and report back.

-Lou


Yegor Kozlov <[email protected]> wrote on 2012-06-13 02:41:02 AM:

> Yegor Kozlov <[email protected]> 
> 2012-06-13 02:42 AM
> 
> Please respond to
> "POI Users List" <[email protected]>
> 
> To
> 
> POI Users List <[email protected]>, 
> 
> cc
> 
> Subject
> 
> Re: XSLF copy slides
> 
> A similar question was answered last week:
> 
> A slide contents consists of two components:
> 1. shapes that actually present on the slide
> 2. shapes defined on the slide master. For example, if slide master
> has a picture background then all slides that follow it will show this
> picture even if the picture is not physically defined on the slide.
> 
> Slide#importContent imports (1), that is, it imports only the actual
> slide contents.
> In theory this approach can be used for master sheets too, but it
> wasn't tested. Try to get slide's layout and slide's master and call
> importContent on them. What is the result?
> 
> Yegor
> 
> On Tue, Jun 12, 2012 at 12:54 PM, rohit_sh1 <[email protected]> wrote:
> > Hi Yegor,
> >
> > importContent seems to be missing slide background information while
> > merging.
> >
> > I am trying a workaround as well i.e. remove all the shapes from 
source
> > slide, save the slide as png and then apply the PNG file as 
background.
> >
> > This method works for HSLF but not with XSLF.
> >
> > Please help.
> >
> > Thanks
> >
> > --
> > View this message in context: http://apache-poi.
> 1045710.n5.nabble.com/XSLF-copy-slides-tp5147500p5710130.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