I was able to split ppts presentation into slides but still have few
problems.

First method I tried was copying content of each slide and output into
separate file:

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

It worked but it did not copy theme "decoration" if a theme was used. Also
it did not copy text in bulleted lists and some other text.

Second method I tried was:
slide.removeSlide(X)

So I removed all slides except one and write out results int separate file.
This worked OK and handled any theme "decoration". However, file for each
output slide had a size that is close to the size of the source presentation
file (in my case 12MB). I looked inside of the side-file archive and found
that directory ppt\media includes images from all slides not only from
current slide. So unnecessary images were not deleted. I can live with this.
However, any thoughts would help to improve the program.

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-tp5631543p5677256.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]

Reply via email to