Skip to content

Instantly share code, notes, and snippets.

@documentize
Created September 27, 2024 12:51
Show Gist options
  • Save documentize/c398c8671a0737ad79289d53fa31a30a to your computer and use it in GitHub Desktop.
Save documentize/c398c8671a0737ad79289d53fa31a30a to your computer and use it in GitHub Desktop.
The example demonstrates how to merge PDF documents using Documentize for .NET SDK.
// 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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment