Modern application development often requires merging multiple files into one. Wordize for .NET provides a simple and efficient API for this task. Using our product, you can quickly implement file merging functionality without complex configurations.
The library is specifically designed for C# developers and allows you to combine documents of various formats while preserving their structure, styles, and formatting. This significantly simplifies document processing automation in .NET projects.
You can test the file merging capabilities using the online demonstration on this page. Upload several files, examine the C# code example, perform the file merge operation, and evaluate the result.
using Wordize.Merging;
Merger.Merge("Output.pdf",
[
"Input1.docx",
"Input2.docx"
]);
using Wordize.Merging;
Merger.Merge("Output.pdf",
[
"Input1.docx",
"Input2.docx"
]);
using Wordize.Merging;
using Wordize.Saving;
var imageStreams = Merger.MergeToImages(
["Input1.docx", "Input2.docx"],
new ImageSaveOptions(SaveFormat.Pdf) { PageLayout = MultiPageLayout.Vertical(10) },
MergeFormatMode.KeepSourceFormatting
);
using var file = File.Create($"Output.pdf");
imageStreams[0].Position = 0;
imageStreams[0].CopyTo(file);
using Wordize.Merging;
using Wordize.Saving;
ImageSaveOptions saveOptions = new ImageSaveOptions(saveFormat);
saveOptions.PageLayout = MultiPageLayout.Vertical(10);
Merger.Create()
.From("Input1.docx")
.From("Input2.docx")
.To("Output.pdf", saveOptions)
.Execute();
using Wordize.Merging;
Merger.Create()
.From("Input1.docx")
.From("Input2.docx")
.To("Output.pdf", SaveFormat.Pdf)
.Execute();