Browse our Products

Aspose.Slides for Python via .NET 26.6 Release Notes

New Features and Enhancements

KeySummaryCategoryRelated Documentation
SLIDESNET-45394Support importing PDF Graphic Paths as native PowerPoint shapesEnhancementhttps://docs.aspose.com/slides/net/import-presentation/#import-powerpoint-from-pdf
SLIDESNET-45236Using a compression type when saving a presentation as a PPTX fileFeature

Other Improvements and Changes

KeySummaryCategoryRelated Documentation
SLIDESPYNET-348Use Aspose.Slides for Net 26.6 featuresEnhancementhttps://releases.aspose.com/slides/net/release-notes/2026/aspose-slides-for-net-26-6-release-notes/

Public API Changes

Added New Enumeration: CompressionLevel

The new CompressionLevel enumeration has been added. This enumeration specifies ZIP compression levels for OpenXML file.

TypeDescription
NONENo compression is applied. Files are stored as-is.
LEVEL1Fastest compression with the lowest compression ratio.
LEVEL2Faster compression with slightly better compression ratio than CompressionLevel.LEVEL1.
LEVEL3Provides better compression than CompressionLevel.LEVEL2 with moderate performance impact.
LEVEL4Provides better compression than CompressionLevel.LEVEL3.
LEVEL5Provides improved compression over CompressionLevel.LEVEL4 with additional processing time.
LEVEL6Standard compression, offering a good balance between compression speed and file size. The default compression level.
LEVEL7Provides higher compression than CompressionLevel.LEVEL6 with slower processing.
LEVEL8Provides higher compression than CompressionLevel.LEVEL7.
LEVEL9Maximum compression. Produces the smallest file size with the slowest processing speed.

Added New Property: IPptxOptions.compression_level

The new compression_level property has been added to the IPptxOptions interface and implemented in the PptxOptions class. This property allows you to control the compression level of the presentation document.

Usage example

The following example demonstrates how to save a PPTX presentation without compression:

import aspose.slides as slides

with slides.Presentation("demo.pptx") as pres:
    pptx_options = slides.export.PptxOptions()
    pptx_options.compression_level = slides.export.CompressionLevel.NONE
    pres.save("demo-out.pptx", slides.export.SaveFormat.PPTX, pptx_options)

This example shows how to save a PPTX presentation with maximum compression:

import aspose.slides as slides

with slides.Presentation("demo.pptx") as pres:
    pptx_options = slides.export.PptxOptions()
    pptx_options.compression_level = slides.export.CompressionLevel.LEVEL9
    pres.save("demo-level9.pptx", slides.export.SaveFormat.PPTX, pptx_options)