Compress

Compress class

Represents a group of methods intended to compress Presentation.

class Compress

Methods

MethodDescription
Compress()
static void CompressEmbeddedFonts(System::SharedPtr<Presentation>)Makes compression of the Presentation by removing unused characters from embedded fonts.
static void CompressImages(System::SharedPtr<IPresentation>, Aspose::Slides::Export::PicturesCompression)Reduces the resolution of pictures in the presentation and deletes their cropped areas, similar to PowerPoint’s “Compress Pictures” applied to all pictures. Pictures on slides, layout slides and master slides are processed, including pictures inside group shapes and picture fills of shapes.
static void CompressPresentation(System::SharedPtr<Presentation>)Reduces the size of a presentation by applying all available compression steps:
static void RemoveUnusedLayoutSlides(System::SharedPtr<Presentation>)Makes compression of the Presentation by removing unused layout slides.
static void RemoveUnusedMasterSlides(System::SharedPtr<Presentation>)Makes compression of the Presentation by removing unused master slides.

Remarks

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

See Also