set_CompressionLevel()
IPptxOptions::set_CompressionLevel(Aspose::Slides::Export::CompressionLevel) method
Specifies the compression level used when saving the presentation document. The default value is CompressionLevel::Level6.
virtual void Aspose::Slides::Export::IPptxOptions::set_CompressionLevel(Aspose::Slides::Export::CompressionLevel value)=0
Remarks
Higher compression levels produce smaller files but require more processing time. The actual compression ratio depends on the content of the presentation.
Example:
System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>(u"demo.pptx");
System::SharedPtr<PptxOptions> pptxOptions = System::MakeObject<PptxOptions>();
pptxOptions->set_CompressionLevel(CompressionLevel::Level8);
pres->Save(u"demo-level8.pptx", SaveFormat::Pptx, pptxOptions);
See Also
- Enum CompressionLevel
- Class IPptxOptions
- Namespace Aspose::Slides::Export
- Library Aspose.Slides