Class Merger

Merger class

Represents Merger plugin.

public sealed class Merger : IPlugin

Constructors

NameDescription
Merger()The default constructor.

Methods

NameDescription
Process(IPluginOptions)Starts the Merger processing with the specified parameters.

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);

See Also