RemoveUnusedLayoutSlides()

Compress::RemoveUnusedLayoutSlides(System::SharedPtr<Presentation>) method

Makes compression of the Presentation by removing unused layout slides.

static void Aspose::Slides::LowCode::Compress::RemoveUnusedLayoutSlides(System::SharedPtr<Presentation> pres)

Arguments

ParameterTypeDescription
presSystem::SharedPtr<Presentation>The presentation instance

Remarks

auto pres = System::MakeObject<Presentation>(u"pres.pptx");
LowCode::Compress::RemoveUnusedLayoutSlides(pres);
pres->Save(u"pres-out.pptx", SaveFormat::Pptx);

See Also