https://bz.apache.org/bugzilla/show_bug.cgi?id=66284

--- Comment #8 from PJ Fanning <fannin...@yahoo.com> ---
I don't have much time to spend on POI right now. One thing to try yourself is
to try out the `importContent` methods on XSLFSlide, XSLFSlideLayout and
XSLFSlideMaster. These are the methods used in our tests when copying slides
and/or their layouts to other slideshows.

One of the POI unit tests does this.

            XSLFSlide srcSlide = srcPptx.getSlides().get(0);
            XSLFSlide newSlide = newPptx.createSlide();

            XSLFSlideLayout srcSlideLayout = srcSlide.getSlideLayout();
            XSLFSlideLayout newSlideLayout = newSlide.getSlideLayout();
            newSlideLayout.importContent(srcSlideLayout);

            XSLFSlideMaster srcSlideMaster = srcSlide.getSlideMaster();
            XSLFSlideMaster newSlideMaster = newSlide.getSlideMaster();
            newSlideMaster.importContent(srcSlideMaster);

            newSlide.importContent(srcSlide);

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to