PNG JPG BMP TIFF PPSM
Aspose.Slides for .NET

Merge PPSM Files in C#

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

Merge PPSM File Using C#

To merge PPSM 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 PPSM Files - C#

using var firstPresentation = new Presentation("first.ppsm");
using var secondPresentation = new Presentation("second.ppsm");
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.ppsm", SaveFormat.Ppsm);
 

Steps for Merging PPSM Files in C#

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

  1. Load the source PPSM 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.Ppsm.

  5. Open the merged PPSM 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

About Aspose.Slides for .NET 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 PPSM Merger Live Demos

PPSM What is PPSM File Format?

Files with the PPSM extension are macro-enabled slide show files introduced with Microsoft PowerPoint 2007. Unlike PPTM, PPSM opens in Slide Show view by default. This default opening mode is not file protection; a PPSM file can also be opened in Microsoft PowerPoint for editing.

Read More

Other Supported Merging Formats

You can also merge many other file formats in C#.

ODP (OpenDocument Presentation Format)
OTP (OpenDocument Presentation Template)
POT (PowerPoint 97–2003 Template)
POTM (PowerPoint Macro-Enabled Template)
POTX (PowerPoint Template)
PPS (PowerPoint Slide Show)
PPSX (PowerPoint Slide Show)
PPT (PowerPoint 97-2003 Presentation)
PPTM (Macro-enabled Presentation File)
PPTX (Open XML Presentation Format)