GroupDocs.Merger for .NET

Merge DOCX files

Use GroupDocs.Merger for .NET to create powerful .NET applications that seamlessly merge and manage DOCX documents.

How to merge DOCX documents

GroupDocs.Merger makes it easy to merge DOCX documents. Add merging functionality to your .NET applications and combine multiple files effortlessly.

  1. Define the path to the first DOCX file.
  2. Choose the second file to merge.
  3. Apply additional merge settings if necessary.
  4. Execute the merge operation and save the output file.
// Initialize Merger with the source DOCX document
using (Merger merger = new Merger("file_1.docx"))
{
    // Merge the document with another file
    merger.Join("file_2.docx");

    // Save the merged file to the desired location
    merger.Save("result.docx");
}
dotnet add package GroupDocs.Merger
click to copy
copied
More examples Documentation

Document merging tools

GroupDocs.Merger for .NET works with more than 50 widely used business file formats, providing extensive document processing capabilities.

Key features of GroupDocs.Merger

Merge different document formats

Combine PDFs, Word documents, spreadsheets, presentations, images, and other file types. Choose specific pages to include in the merge process.

Page manipulation

Rearrange, remove, or swap pages to organize documents according to your needs.

Adjust page appearance

Rotate pages to any angle and switch between landscape and portrait mode for supported formats.

Extract pages

Select and extract specific pages to create a new file or document.

Merge files of different formats

This example demonstrates how to merge multiple files of various supported formats into a single document.

C#

// Define the main file path
using (Merger merger = new Merger("file_1.pdf"))
{
    // Merge it with a Microsoft Word document
    merger.Join("file_2.docx");

    // Add a Microsoft Excel spreadsheet to the merged file
    merger.Join("file_3.xlsx");

    // Save the merged document to the specified location
    merger.Save("result.pdf");
}
dotnet add package GroupDocs.Merger
click to copy
copied
More examples Documentation

About GroupDocs.Merger

GroupDocs.Merger for .NET is an advanced document processing solution that supports over 50 file formats, including PDFs, Word documents, spreadsheets, presentations, images, and archives. Easily merge, split, extract, reorder, and remove pages as needed.
Learn more
About illustration

Ready to get started?

Download GroupDocs.Merger for free or get a trial license for full access!

Useful resources

Explore documentation, code samples, and community support to enhance your experience.

Key features

Discover additional document processing options

Merge various file formats

GroupDocs.Merger supports more than 50 file formats, enabling efficient document merging and processing.

Temporary license tips

1
Sign up with your work email.
Free mail services are not allowed.
2
Use Get a temporary license button on the second step.
 English