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
| Method | Description |
|---|---|
| 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:
| Parameter | Type | Description |
|---|---|---|
| inputFileNames | java.lang.String[] | An array of the input presentation file names. |
| outputFileName | java.lang.String | The 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:
| Parameter | Type | Description |
|---|---|---|
| inputFileNames | java.lang.String[] | An array of the input presentation file names. |
| outputFileName | java.lang.String | The output file name of the resulting merged presentation file. |
| options | ISaveOptions | The 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:
| Parameter | Type | Description |
|---|---|---|
| inputFileNames | java.lang.String[] | An array of the input presentation file names. |
| outputStream | java.io.OutputStream | The 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:
| Parameter | Type | Description |
|---|---|---|
| inputFileNames | java.lang.String[] | An array of the input presentation file names. |
| outputStream | java.io.OutputStream | The output stream. |
| options | ISaveOptions | The additional options that define how the merged presentation is saved. |