I need an API that performs following functionality - Given multi slides SlideShow, create a new SlideShow with given slide numbers.
Please provide links to any documentation needed to start contributing to it. Also, for PowerPoint File format, what specification is being followed.
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
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.
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...
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.