Browse our Products

Aspose.Slides for Python via .NET 26.2 Release Notes

New Features and Enhancements

KeySummaryCategoryRelated Documentation
SLIDESPYNET-283Elements of a drawing are missing when converting PPTX to PDF/PNGBug
SLIDESPYNET-331Use Aspose.Slides for Net 26.2 featuresEnhancementhttps://releases.aspose.com/slides/net/release-notes/2025/aspose-slides-for-net-26-2-release-notes/

Public API Changes

Extended Enum: SourceFormat

The SourceFormat enumeration has been extended and now contains the following values:

FormatDescription
PPTMicrosoft PowerPoint 97-2003 Presentation (*.ppt).
PPTXMicrosoft Office Open XML Presentation (*.pptx).
ODPOpenDocument Presentation (*.odp).
PPTMMicrosoft Office Open XML Macro-enabled Presentation (*.pptm).
PPSXMicrosoft Office Open XML SlideShow (*.ppsx).
PPSMMicrosoft Office Open XML Macro-enabled SlideShow (*.ppsm).
POTXMicrosoft Office Open XML Template (*.potx).
POTMMicrosoft Office Open XML Macro-enabled Template (*.potm).
PPSMicrosoft PowerPoint 97-2003 SlideShow (*.pps).
POTMicrosoft PowerPoint 97-2003 Template (*.pot).
OTPOpenDocument Presentation Template (*.otp).
FODPFlat XML ODF Presentation (*.fodp).
XMLPowerPoint XML Presentation (*.xml).

Note: The .ppt, .pps, and .pot file types use the same binary PowerPoint file format. They differ only in file extension, which indicates the intended document usage (presentation, slideshow, or template). The internal file structure is identical for all three formats.

Added New Method: SlideUtil.to_save_format

The new to_save_format method has been added to the SlideUtil class. It converts a source file format to the corresponding SaveFormat value.

Usage Example

The following code shows how to modify a presentation and save it to a stream in its original format:

import io
import aspose.slides as slides

with slides.Presentation("SomePresentation.pptm") as pres:
    pres.slides.add_clone(pres.slides[0])
    with io.BytesIO() as stream:
        pres.save(stream, slides.util.SlideUtil.to_save_format(pres.source_format))