Merge PPS Files in C#

Combine PPS documents with server-side Aspose.Slides for .NET APIs.

Merge PPS File Using C#

To merge PPS files, use Aspose.Slides for .NET , a C# API for creating, converting, and combining presentation documents. Install the package from NuGet or run the following command in the Package Manager Console.

Command

PM> Install-Package Aspose.Slides.NET

Merge PPS Files - C#

using var firstPresentation = new Presentation("first.pps");
using var secondPresentation = new Presentation("second.pps");
using var mergedPresentation = new Presentation();

mergedPresentation.Slides.RemoveAt(0);

foreach (var slide in firstPresentation.Slides)
{
    mergedPresentation.Slides.AddClone(slide);
}

foreach (var slide in secondPresentation.Slides)
{
    mergedPresentation.Slides.AddClone(slide);
}

mergedPresentation.Save("merged.pps", SaveFormat.Pps);

Steps for Merging PPS Files in C#

Merge PPS files with Aspose.Slides for .NET in a few lines of C# code.

  1. Load the source PPS files with Presentation.
  2. Create a destination Presentation object.
  3. Add slides from each source file with Slides.AddClone.
  4. Save the merged presentation with SaveFormat.Pps.
  5. Open the merged PPS file in a compatible program.

System Requirements

Aspose.Slides for .NET is supported on major platforms and operating systems. Before running the code below, make sure that your system meets the following requirements.

  • A supported operating system with .NET or Mono installed.
  • Development environment like Microsoft Visual Studio
  • Aspose.Slides for .NET DLL referenced in your project - Install from NuGet using the Download button above

Built with Aspose.Slides

Merge PPS Files Online

The free Aspose.Slides Merger app is built with Aspose.Slides for .NET, the same API as the code above. Open it and see what the API can do with your own PPS files.

  • Runs in your browser, nothing to install.
  • See how Aspose.Slides merges files before you write code.
  • Upload several PPS files and combine them into one.
  • Download the merged result as one file.

What is PPS File Format?

PPS (PowerPoint Slide Show) is the binary slide show format used by PowerPoint 97–2003. PPSX is the newer slide show format based on the Office Open XML standard. Current versions of PowerPoint can open PPS files and can still save presentations in PPS format. When opened normally, a PPS file starts in slide show mode, whereas a PPT file opens in editing mode.

Read More