Compress
Contents
[
Hide
]Compress class
Represents a group of methods intended to compress Presentation.
public static class Compress
Methods
| Name | Description |
|---|---|
| static CompressEmbeddedFonts(Presentation) | Makes compression of the Presentation by removing unused characters from embedded fonts. |
| static CompressImages(IPresentation, 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 CompressPresentation(Presentation) | Reduces the size of a presentation by applying all available compression steps: |
| static RemoveUnusedLayoutSlides(Presentation) | Makes compression of the Presentation by removing unused layout slides. |
| static RemoveUnusedMasterSlides(Presentation) | Makes compression of the Presentation by removing unused master slides. |
Examples
using (Presentation pres = new Presentation("pres.pptx"))
{
Aspose.Slides.LowCode.Compress.RemoveUnusedImages(pres);
pres.Save("pres-out.pptx", SaveFormat.Pptx);
}
See Also
- namespace Aspose.Slides.LowCode
- assembly Aspose.Slides