Created attachment 23202 [details] sample implementation Hi, i want to propose adding a method to remove a slide from a slideshow. My usecase: I have a template ppt created in Powerpoint, that is filled with values through POI. If there is less data than expected I want to remove superflous slides. The attached patch works for me, but it could probably share code with reorderSlides and is missing better documentation and tests. have a nice day, David.
It's rather "hiding", not a true deleting because the slide data remains, you only remove the reference to it from the Document. Anyway, thanks for the patch. I will review and apply later. Yegor
Added in r739775 Please note, that my implementation uses 0-based arguments, not 1-based as suggested in your patch. I would rather change SlideShow.reorderSlide to accept 0-based arguments than use 1-based throughout the code. Yegor