.NET Document Merger API to Merge PDF, Word & More

Upgrade your .NET document processing solutions by integrating document merging ability to seamlessly join or split PDF, MS Office, OpenOffice, HTML, and image file formats.

Download Free TrialView All APIs

Unlock Seamless Document Merging & Manipulation in .NET

GroupDocs.Merger for .NET is a versatile API designed to merge and split documents, images, and other file formats within the .NET platform. Developers can use the API to seamlessly combine or split files and perform many other document manipulation tasks. The API supports various commonly used document and image file formats, such as PDF, Microsoft Word, Excel, PowerPoint, Visio, OpenOffice files, XPS, HTML, eBooks, ZIP archives, PNG, JPEG, BMP, GIF, SVG, and more. The .NET document merger API facilitates end users to enhance their document processing workflows with immaculate efficiency. With the API, you can develop online PDF merger or Word document splitter applications and let users process their files from anywhere.

Our API helps you join multiple files into a unified document, combine pages from different documents into one file, split a document into multiple files, work with advanced file splitting functionalities, modify document page position, remove document pages, swap or extract document pages, rotate pages to different angles, update the orientation of document pages, add or remove a file password, and do much more. You can optimize the performance of your document management software, experience workflow enhancements, and easily merge or split documents by integrating the unparalleled abilities of the .NET API for merging documents into your solutions.

Getting Started

Please review a list of the recommended framework, operating system, development environment, and other settings on the System Requirements page before you install the .NET document merger API and get started with merging or splitting documents. Please comply with the outlined requirements to enjoy a smooth API usage experience.

GroupDocs.Merger for .NET Installation

To install the library, please download the MSI installer or the DLLs by visiting the downloads section. Alternatively, you may use the NuGet package to set up the .NET document merger library. The Visual Studio package manager console command is shared below:

PM > Install-Package GroupDocs.Merger

Learn to Quickly Merge Word Documents and Remove Pages from PDFs in .NET

GroupDocs.Merger for .NET is a comprehensive solution to all your document merging and manipulation needs on the .NET platform. As part of its extended feature set, it helps end users merge Word documents and many more files. Developers require minimum coding for executing document merger functionality and other API operations. Using the .NET document merger API, you can delete, replace, and remove pages from PDF documents. We will learn to merge Word documents and delete PDF document pages with the help of code examples in this section.

Merge Word Documents using C#

Merging multiple Word documents helps centralize the data and information contained in these documents into a single file. Please refer to the following C# coding example and other information to learn more.

  • Load the source Word (DOCX) document using the Merger class.
  • Merge the Word document using the Join method.
  • Continue merging any additional document(s) using the same method.
  • Use the Save method to save the merged document.

// Learn to Merge Two MS Word Documents using C#
Merger merger = new Merger("source_document.docx"); // Load the source document
merger.Join("document_to_merge.docx"); // Merge the document
merger.Join("another_document_to_merge.docx"); // Merge additional documents
merger.Save("output_document.docx"); // Save the merged document

Remove Pages from PDF Documents in .NET

There could be a business requirement to delete pages from an official PDF document and save them as separate documents. Let's review the following C# code sample of the .NET document merger library to check how to do it.

  • Instantiate the RemoveOptions class with the list of page numbers to remove.
  • Initialize the Merger object with the source document path or stream.
  • Use the RemovePages method to remove the listed pages.
  • Use the Save method to save the resultant PDF document.

// Delete selected pages from a PDF document in C#
RemoveOptions removeOptions = new RemoveOptions(new int[] { 3, 5 });

using (Merger merger = new Merger("path/document.pdf"))
{
    merger.RemovePages(removeOptions);
    merger.Save("path/selected-pages-removed.pdf");
}

Please find more GroupDocs.Merger for .NET API code examples at the GitHub examples page. Please check out our cross-platform Free Online Document Merger Apps and merge PDF, DOCX, XLSX, PPTX, ODS, VSDX, XPS, EPUB, TXT, BMP, JPEG, and more files from anywhere using your desktop or mobile devices.

Experience Simplicity in Development and Integration with GroupDocs

GroupDocs.Merger for .NET offers an unmatched cross-platform development experience to end users. It supports all well-known operating systems, such as Windows, Mac OS, and Linux. The API is compatible with multiple frameworks, allowing developers to worry less about compatibility issues and focus more on software development. Integrating with existing software is easy and can be done with only a few lines of .NET coding. The .NET document merger API provides everything you need to build feature-rich solutions for desktop or web interfaces. For example, you can create multi-faceted apps that allow users to merge and split documents, extract, delete, rotate, and swap document pages' positions. Whether you want to enhance your existing apps or develop new ones from scratch, our API covers you well.

FAQ

1. What is GroupDocs.Merger for .NET API?

GroupDocs.Merger for .NET is a comprehensive document merging API for users to quickly merge, split, and manipulate different types of files. The API offers easy-to-use features and methods that can be utilized to create new document merger solutions or augment existing document processing apps.

2. What document formats are supported by the API?

The .NET API supports PDF, Microsoft Word documents, Excel spreadsheets, PowerPoint presentations, OpenOffice documents, Visio diagrams, HTML, XPS, EPUB, and ONE files, ZIP and RAR archives, and PNG, BMP, SVG, JPEG, GIF, and TIFF files.

3. Are code examples available to help learn about merging documents using the .NET API?

Yes, we provide code examples for developers on the GitHub examples page of the .NET API. These code examples help end users during the initial learning curve, and they can get up to speed and start merging documents with ease.

4. Is the API secure for sensitive documents and data?

Yes, the API is secure and you can rest assured about the safety of your data while using the API. We ensure the security and integrity of your data and take all necessary measures to provide you with a secure user experience.

5. Is GroupDocs.Merger for .NET compatible with different frameworks?

Absolutely! The .NET document merger library is compatible with multiple .NET and Mono frameworks and works smoothly on various 32-bit and 64-bit operating systems. You do not need to install third-party software for merging and splitting documents using the library.

Looking for help?

Checkout our support channels for help with your questions related to GroupDocs product API features and working.

Ready to get started?

Download Free Trial View All APIs