Merge PPSX Files using C++
Use Aspose.Slides for C++ to merge PPSX files with server-side C++ APIs.
Merge PPSX Files Using C++
To merge PPSX files, use
Aspose.Slides for C++
, a C++ API for working with presentation files. Install the latest package from
NuGet
or use the Package Manager Console command below.
Command
PM> Install-Package Aspose.Slides.CppMerge PPSX Files - C++
auto destinationPresentation = MakeObject<Presentation>(u"first.ppsx");
auto sourcePresentation = MakeObject<Presentation>(u"second.ppsx");
for (auto&& slide : sourcePresentation->get_Slides())
{
destinationPresentation->get_Slides()->AddClone(slide);
}
destinationPresentation->Save(u"merged.ppsx", SaveFormat::Ppsx);
sourcePresentation->Dispose();
destinationPresentation->Dispose();Steps for Merging PPSX Files in C++
Merge PPSX files with
Aspose.Slides for C++
by cloning slides from one presentation into another.
- Load the destination and source
PPSXfiles with thePresentationclass. - Iterate through the source slides with
get_Slides. - Add each slide to the destination presentation with
AddClone. - Save the merged file with
SaveFormat::Ppsx.
System Requirements
Aspose.Slides for C++ is supported on all major platforms and operating systems. Please make sure that you have the following prerequisites.
- Microsoft Windows, Linux, macOS, or another compatible OS with the supported C++ runtime.
- Aspose.Slides for C++ library referenced in your project.
Built with Aspose.Slides
Merge PPSX Files Online
The free Aspose.Slides Merger app is built with Aspose.Slides for C++, the same API as the code above. Open it and see what the API can do with your own PPSX files.
- Runs in your browser, nothing to install.
- See how Aspose.Slides merges files before you write code.
- Upload several PPSX files and combine them into one.
- Download the merged result as one file.
What is PPSX File Format?
A PPSX file is a PowerPoint Open XML Slide Show created by Microsoft PowerPoint 2007 or later. It is the Open XML successor to the PPS format used by PowerPoint 97–2003. Unlike a PPTX file, which opens in editing mode by default, a PPSX file opens directly as a slide show. It preserves the presentation’s slide order and can contain images, audio, and other embedded media.
Other Supported Merging Formats
You can also merge presentations in other formats.