GroupDocs.Merger

Merge, split, reorder, rotate, and manage pages across document formats — with a single, consistent API across .NET, Java, Node.js, and Python.

4 platforms 60+ formats Latest v26.6.0

Choose your platform selecting one updates the snippets below

.NETv26.4.0
dotnet add package GroupDocs.Merger
Javav26.4.0
com.groupdocs:groupdocs-merger
Python via .NETv26.6.0
pip install groupdocs-merger-net

Getting started with .NET

using System;
using GroupDocs.Merger;

// Open the source PDF file
using (Merger merger = new Merger(@"c:\sample1.pdf"))
{
  // Append another PDF file for merging
  merger.Join(@"c:\sample2.pdf");

  // Combine PDF files and save the output
  merger.Save(@"c:\merged.pdf");
}
import com.groupdocs.merger.*;

// Load the source PDF file
Merger merger = new Merger("sample1.pdf");

// Add another PDF file to combine
merger.join("sample2.pdf");

// Merge PDF files and save the output
merger.save("merged.pdf");
const groupdocs = require('@groupdocs/groupdocs.merger');

// Load the source PDF file
const merger = new groupdocs.Merger("sample1.pdf");

// Add another PDF file to combine
merger.join("sample2.pdf");

// Merge the PDF files and save the output
merger.save("merged.pdf");
merger.close();
from groupdocs.merger import Merger

def run():

    # Load the original PDF file
    with Merger("sample1.pdf") as merger:

        # Add another PDF file for merging
        merger.join("sample2.pdf")

        # Combine the PDF files and save the output
        merger.save("merged.pdf")

Popular classes & namespaces

Key capabilities

  • Merge & split documents
  • Reorder, rotate & swap pages
  • Extract or remove pages
  • Page-level operations
  • Preview pages
  • Cross-format support

Supported formats

PDFWordExcelPowerPointVisioImages

…and 50+ more document and image formats.

Resources