Can we create an empty slide without specifying any layout in PPTX?

Hi Mudassir,

To create an empty slide

PresentationEx presentation = new PresentationEx(Stream);//reading a presentation from stream

presentation.slides.AddEmptySlide(Layout);

//We want to create an empty slide. However we are facing issue when specifying the layout as 'Blank' cause for some of the presentations blank layout is removed.

Is there any other way to create an empty slide without depending on layouts?

Please advice.

Thanks,

Koundinya P

Hi Koundinya P,

I have observed your requirements and regret to share that there is no option available to generate the slide in PPTX without layout slide and it also makes sense as well. In case of PPTX we have layout slides and every slide that you add is mapped on some layout slide. In case if you have no Blank layout slide then in that case the only option available is to generate the slide with any of Layout Slide. Then access all shapes in the created slide and remove them. But obviously this is not efficient solution. One need to have BlankLayout slide in collection if it is intended to be created. Please share, if I may help you further in this regard.

Many Thanks,