Javatpoint Logo
Javatpoint Logo

Apache POI Delete Slide

To delete powerpoint slide, Apache POI provides a method removeSlide(). It takes slide's index as an argument. Slide index starts with 0, so that first slide can be accessed by passing 0 to this method.

Lets see an example in which we are deleting first slide from the group of slides.

Apache POI Delete Slide Example

Output:

See, before deleting slide, we have three slides in this document.


Apache POI Powerpoint Delete Slide

After deleting first slide, now we are left with two slides.


Apache POI Powerpoint Delete Slide
Next Topic#




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


B.Tech / MCA