Table of Contents

Introduction

The Slidize.Plugins library provides a variety of useful classes for working with presentations, including the PresentationMerger tool. This class allows you to merge multiple PowerPoint presentations into a single file. This approach can be used to create final presentations compiled from several sources. This article will discuss the use of PresentationMerger with examples in C#.

PresentationMerger is a plugin for merging PowerPoint presentation files into a single output file. It is especially useful when you need to compile several presentations, prepared by different authors, into a final version. The Process method takes an array of presentation file paths and a path for saving the output file.

Merge PowerPoint Presentations

The following example shows how to merge two PowerPoint presentations into a single file using PresentationMerger.

using Slidize;

var inputPaths = new string[] { "presentation1.pptx", "presentation2.pptx" };
var outputPath = "merged_presentation.pptx";

PresentationMerger.Process(inputPaths, outputPath);

In this example, an array of strings is created representing the paths to the source presentations to be merged. Then, the Process method is called, which saves the merged presentation to the file merged_presentation.pptx.