Class Merger
Namespace: Aspose.Slides.LowCode
Assembly: Aspose.Slides.dll (25.12.0)
Represents a group of methods for merging PowerPoint presentations of the same format into one file.
public static class MergerInheritance
Methods
Process(string[], string)
Merges multiple PowerPoint presentations of the same format into a single presentation file.
public static void Process(string[] inputFileNames, string outputFileName)Parameters
inputFileNames string
[]
An array of the input presentation file names.
outputFileName string
The output file name of the resulting merged presentation file.
Examples
Merger.Process(new string[] { "pres1.ppt", "pres2.ppt" }, "merged.ppt");
Exceptions
Thrown when input file names are invalid or formats do not match.
Process(string[], string, ISaveOptions)
Merges multiple PowerPoint presentations of the same format into a single presentation file.
public static void Process(string[] inputFileNames, string outputFileName, ISaveOptions options)Parameters
inputFileNames string
[]
An array of the input presentation file names.
outputFileName string
The output file name of the resulting merged presentation file.
options ISaveOptions
The additional options that define how the merged presentation is saved.
Examples
Merger.Process(new string[] { "pres1.pptx", "pres2.pptx" }, "merged.pptx", new PptxOptions() { RefreshThumbnail = false });
Exceptions
Thrown when input file names are invalid or formats do not match.
Process(string[], Stream)
Merges multiple PowerPoint presentations of the same format into a single presentation file.
public static void Process(string[] inputFileNames, Stream outputStream)Parameters
inputFileNames string
[]
An array of the input presentation file names.
outputStream Stream
The output stream.
Examples
using(var stream = new MemoryStream())
Merger.Process(new string[] { "pres1.ppt", "pres2.ppt" }, stream);Exceptions
Thrown when input file names are invalid or formats do not match.
Process(string[], Stream, ISaveOptions)
Merges multiple PowerPoint presentations of the same format into a single presentation file.
public static void Process(string[] inputFileNames, Stream outputStream, ISaveOptions options)Parameters
inputFileNames string
[]
An array of the input presentation file names.
outputStream Stream
The output stream.
options ISaveOptions
The additional options that define how the merged presentation is saved.
Examples
using(var stream = new MemoryStream())
Merger.Process(new string[] { "pres1.pptx", "pres2.pptx" }, stream, new PptxOptions() { RefreshThumbnail = false });Exceptions
Thrown when input file names are invalid or formats do not match.