Merge ODP Files using C++
Use Aspose.Slides for C++ to merge ODP files with server-side C++ APIs.
Merge ODP Files Using C++
To merge ODP 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.Cpp
Steps for Merging ODP Files in C++
Merge ODP files with
Aspose.Slides for C++
by cloning slides from one presentation into another.
Load the destination and source
ODPfiles 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::Odp.
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.
Merge ODP Files - C++
auto destinationPresentation = MakeObject<Presentation>(u"first.odp");
auto sourcePresentation = MakeObject<Presentation>(u"second.odp");
for (auto&& slide : sourcePresentation->get_Slides())
{
destinationPresentation->get_Slides()->AddClone(slide);
}
destinationPresentation->Save(u"merged.odp", SaveFormat::Odp);
sourcePresentation->Dispose();
destinationPresentation->Dispose();
Merge Files Online
Merge presentations, documents, and images online.
About Aspose.Slides for C++ API
The Aspose.Slides API can read, write, manipulate, and convert Microsoft PowerPoint presentations to PDF, XPS, HTML, TIFF, ODP, and other supported formats. You can create presentations from scratch and save them in a supported output format. Aspose.Slides is a standalone API for creating, parsing, and manipulating presentations, slides, and their elements; it does not require Microsoft PowerPoint or OpenOffice.Online ODP Merger Live Demos
ODP What is ODP File Format?
Files with the `.ODP` extension use the OpenDocument Presentation format defined by the OASIS OpenDocument standard. An ODP file contains a collection of slides that can include text, images, formatting, animations, and other media. Applications that support OpenDocument presentations, such as LibreOffice Impress and Apache OpenOffice Impress, can open ODP files.
Read MoreOther Supported Merging Formats
You can also merge presentations in other formats.