Bug 61959 - Provide support to create single slide SlideShow given multi slides SlideShow
Summary: Provide support to create single slide SlideShow given multi slides SlideShow
Status: NEW
Alias: None
Product: POI
Classification: Unclassified
Component: XSLF (show other bugs)
Version: 4.0.x-dev
Hardware: PC All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-03 09:42 UTC by Praful
Modified: 2018-02-21 06:25 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Praful 2018-01-03 09:42:19 UTC
I need an API that performs following functionality -

Given multi slides SlideShow, create a new SlideShow with given slide numbers.
Comment 1 Praful 2018-01-03 09:44:11 UTC
Please provide links to any documentation needed to start contributing to it. Also, for PowerPoint File format, what specification is being followed.
Comment 2 Nick Burch 2018-01-03 09:46:16 UTC
Please see http://poi.apache.org/guidelines.html for details on how to contribute, links to the official file format specs etc

However... I think you can do what you want with POI already. Just copy the master slideshow to a new file, open it, and delete all the slides you don't want
Comment 3 Praful 2018-01-03 09:52:17 UTC
Thanks Nick for the suggestion. But the problem with this approach is redundancy and time/resource consuming. For eg, I have 20 slides SlideShow file and I want to get 20 new SlideShow having a single slide. So, performing 19 delete operations for every SlideSHow is not efficient.
Comment 4 Alain Fagot Bearez 2018-01-06 03:41:55 UTC
The alternative would be to copy each slide to a new presentation, by creating a new slide in the new presentation and importing the content of the original slide into the newly created slide.
https://poi.apache.org/apidocs/org/apache/poi/xslf/usermodel/XSLFSlide.html#importContent-org.apache.poi.xslf.usermodel.XSLFSheet-

But then you would have to copy the master style sheet and some other details, from the original presentation to the newly created presentation.

If your slides have charts or notes and you want to copy them along, you would face bug #57835 for which I implemented only part of the fix: charts in the same presentation.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57835

Not wanting to scare you, but Nick might have given the path to the solution with less code to write...
Comment 5 Praful 2018-02-21 06:25:05 UTC
If I would like to contribute this feature can anyone please point me to area in codebase/documentation that I should look into. Starting from specifications seems to be difficult to start with. Any help appreciated.