Merger

Inheritance: java.lang.Object

public class Merger

Represents a group of methods for merging PowerPoint presentations of the same format into one file.

Methods

MethodDescription
process(String[] inputFileNames, String outputFileName)Merges multiple PowerPoint presentations of the same format into a single presentation file.
process(String[] inputFileNames, String outputFileName, ISaveOptions options)Merges multiple PowerPoint presentations of the same format into a single presentation file.
process(String[] inputFileNames, OutputStream outputStream)Merges multiple PowerPoint presentations of the same format into a single presentation file.
process(String[] inputFileNames, OutputStream outputStream, ISaveOptions options)Merges multiple PowerPoint presentations of the same format into a single presentation file.

process(String[] inputFileNames, String outputFileName)

public static void process(String[] inputFileNames, String outputFileName)

Merges multiple PowerPoint presentations of the same format into a single presentation file.


Merger.process(new String[] { "pres1.ppt", "pres2.ppt" }, "merged.ppt");

Parameters:

ParameterTypeDescription
inputFileNamesjava.lang.String[]An array of the input presentation file names.
outputFileNamejava.lang.StringThe output file name of the resulting merged presentation file.

process(String[] inputFileNames, String outputFileName, ISaveOptions options)

public static void process(String[] inputFileNames, String outputFileName, ISaveOptions options)

Merges multiple PowerPoint presentations of the same format into a single presentation file.


PptxOptions options = new PptxOptions();
 options.setRefreshThumbnail(false);
 Merger.process(new String[] { "pres1.pptx", "pres2.pptx" }, "merged.pptx", options);

Parameters:

ParameterTypeDescription
inputFileNamesjava.lang.String[]An array of the input presentation file names.
outputFileNamejava.lang.StringThe output file name of the resulting merged presentation file.
optionsISaveOptionsThe additional options that define how the merged presentation is saved.

process(String[] inputFileNames, OutputStream outputStream)

public static void process(String[] inputFileNames, OutputStream outputStream)

Merges multiple PowerPoint presentations of the same format into a single presentation file.


ByteArrayOutputStream stream = new ByteArrayOutputStream();
 Merger.process(new String[] { "pres1.ppt", "pres2.ppt" }, stream);

Parameters:

ParameterTypeDescription
inputFileNamesjava.lang.String[]An array of the input presentation file names.
outputStreamjava.io.OutputStreamThe output stream.

process(String[] inputFileNames, OutputStream outputStream, ISaveOptions options)

public static void process(String[] inputFileNames, OutputStream outputStream, ISaveOptions options)

Merges multiple PowerPoint presentations of the same format into a single presentation file.


PptxOptions options = new PptxOptions();
 options.setRefreshThumbnail(false);
 ByteArrayOutputStream stream = new ByteArrayOutputStream();
 Merger.process(new String[] { "pres1.pptx", "pres2.pptx" }, stream, options);

Parameters:

ParameterTypeDescription
inputFileNamesjava.lang.String[]An array of the input presentation file names.
outputStreamjava.io.OutputStreamThe output stream.
optionsISaveOptionsThe additional options that define how the merged presentation is saved.