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 Fri, Jun 8, 2012 at 3:09 AM,  <[email protected]> wrote:
> I just noticed that when I merged pptx files (creating a new pptx), the
> slide templates are gone.  The code I am using is basically:
>
> XMLSlideShow newppt = new XMLSlideShow();
> for(String ndx : deckIndexes) {
>        int iNdx = Integer.parseInt(ndx);
>        XSLFSlide slide = coreSlides[iNdx];
>        if(slide!=null) {
>                newppt.createSlide().importContent(slide);  //THIS IS THE
> CODE!!!
>        }
> }
>
> I'm guessing I'm going to have to dip deeper into the slides, but I want
> to be 100% sure before I go down that road.
>
> Thanks,
> Lou

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

Reply via email to