Class Merger

Class Merger

Namespace: Aspose.Pdf.Plugins
Assembly: Aspose.PDF.dll

Represents Aspose.Pdf.Plugins.Merger plugin.

public sealed class Merger : IPlugin

Inheritance

objectMerger

Implements

IPlugin

Inherited Members

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Examples

The example demonstrates how to merge two PDF documents.

// create Merger
var merger = new Merger();
// create MergeOptions object to set instructions
var opt = new MergeOptions();
// add input file paths
opt.AddInput(new FileDataSource(inputPath1));
opt.AddInput(new FileDataSource(inputPath2));
// set output file path
opt.AddOutput(new FileDataSource(outputPath));
// perform the process
merger.Process(opt);

Constructors

Merger()

public Merger()

Methods

Process(IPluginOptions)

Starts the Aspose.Pdf.Plugins.Merger processing with the specified parameters.

public ResultContainer Process(IPluginOptions options)

Parameters

options IPluginOptions

An options object containg instructions for the Aspose.Pdf.Plugins.Merger.

Returns

ResultContainer

An ResultContainer object containg the result of the operation.

Exceptions

InvalidOperationException

 English