Browse our Products

Aspose.Slides for C++ 26.2 Release Notes

Supported Platforms

  • Aspose.Slides for C++ for Windows x64/x86 (Microsoft Visual Studio 2017 or later).
  • Aspose.Slides for C++ for Linux (Clang 3.9 or later, GCC 6.1 or later, glibc 2.23 or later).
  • Aspose.Slides for C++ for macOS x86_64/ARM64 (Xcode 13.4 or later).

New Features and Enhancements

KeySummaryCategoryRelated Documentation
SLIDESCPP-4105Use Aspose.Slides for .NET 26.2 featuresEnhancementhttps://releases.aspose.com/slides/net/release-notes/2026/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:

NameValueDescription
Ppt0Microsoft PowerPoint 97-2003 Presentation (*.ppt).
Pptx1Microsoft Office Open XML Presentation (*.pptx).
Odp2OpenDocument Presentation (*.odp).
Pptm3Microsoft Office Open XML Macro-enabled Presentation (*.pptm).
Ppsx4Microsoft Office Open XML SlideShow (*.ppsx).
Ppsm5Microsoft Office Open XML Macro-enabled SlideShow (*.ppsm).
Potx6Microsoft Office Open XML Template (*.potx).
Potm7Microsoft Office Open XML Macro-enabled Template (*.potm).
Pps8Microsoft PowerPoint 97-2003 SlideShow (*.pps).
Pot9Microsoft PowerPoint 97-2003 Template (*.pot).
Otp10OpenDocument Presentation Template (*.otp).
Fodp11Flat XML ODF Presentation (*.fodp).
Xml12PowerPoint 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::ToSaveFormat

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

Usage Format

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

auto sourcePresentation = MakeObject<Presentation>(u"SomePresentation.pptx");

// Modify the presentation as you need
sourcePresentation->get_Slides()->AddClone(sourcePresentation->get_Slide(0));

// Save the presentation to the stream in its original format
auto stream = MakeObject<MemoryStream>();
sourcePresentation->Save(stream, SlideUtil::ToSaveFormat(sourcePresentation->get_SourceFormat()));