GroupDocs.Merger
Merge, split, reorder, rotate, and manage pages across document formats — with a single, consistent API across .NET, Java, Node.js, and Python.
Choose your platform selecting one updates the snippets below
Node.jsv24.12.0
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
Class
Merger
GroupDocs.Merger
Method
Merger.Join
GroupDocs.Merger
Interface
IMerger
GroupDocs.Merger
Class
MergerSettings
GroupDocs.Merger
Class
ImageJoinOptions
Domain.Options
Class
ImportDocumentOptions
Domain.Options
Class
ExtractOptions
Domain.Options
Class
DocumentInfo
Domain.Result
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
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.