Browse our Products

If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.

Docs Swagger Examples Blog Support Release Notes Dashboard

Installation

The package is available at nuget.org and it can be installed via package manager console by executing following command:

PM> NuGet\Install-Package GroupDocs.Merger-Cloud

Version NuGet NuGet-GroupDocsCloud


Quick Start

1. Create an Account

Sign up for a free account at GroupDocs Cloud Dashboard.

2. Get API Credentials

Create or use an existing API client app to get your Client ID and Client Secret from the Dashboard.

3. Install the SDK

Install the SDK for your platform to streamline development. Run the following command in Visual Studio:

  • To install the SDK:
    Install-Package GroupDocs.Merger-Cloud
  • To upgrade the SDK:
    Update-Package GroupDocs.Merger-Cloud

4. Make an API Request

Use your Client ID and Client Secret to interact with GroupDocs.Merger Cloud. Below is an example demonstrating how to get a list of supported file formats:

var configuration = new Configuration(MyClientId, MyClientSecret);
var apiInstance = new InfoApi(configuration);
var response = apiInstance.GetSupportedFileFormats();

Merge Multiple Word Documents into One Using Cloud API

Learn how to merge multiple Word documents (DOCX, DOC) into a single document using GroupDocs.Merger Cloud API in C#. This example demonstrates merging different Word files seamlessly with a few lines of code.

// Initialize GroupDocs.Merger Cloud API
using GroupDocs.Merger.Cloud.Sdk.Api;
using GroupDocs.Merger.Cloud.Sdk.Client;
using GroupDocs.Merger.Cloud.Sdk.Model.Requests;
using System;

namespace GroupDocs.Merger.Cloud.Examples.CSharp
{
    // Merge Multiple Word Documents
    class Merge_Word_Documents
    {
        public static void Run()
        {
            // Create configuration with your Client ID and Client Secret
            var configuration = new Configuration("YourClientID", "YourClientSecret");

            // Initialize the Merger API instance
            var apiInstance = new MergerApi(configuration);

            // Create a new merge request for two DOCX files
            var request = new JoinRequest(new JoinOptions()
            {
                FileInfo = new FileInfo() { FilePath = "Word/document1.docx" }, // First file
                JoinItems = new List<JoinItem>() {
                    new JoinItem() { FileInfo = new FileInfo() { FilePath = "Word/document2.docx" } }, // Second file
                },
                OutputPath = "MergedOutput/output.docx" // Output path
            });

            // Call the API to merge the documents
            apiInstance.Join(request);
            Console.WriteLine("Documents merged successfully.");
        }
    }
}

Merge Specific Pages from PDF Documents

This example demonstrates how to merge specific pages from multiple PDF documents into a single PDF file using GroupDocs.Merger Cloud API in C#. Customize the pages to be merged for more flexible document processing.

// Initialize GroupDocs.Merger Cloud API for PDF merging
using GroupDocs.Merger.Cloud.Sdk.Api;
using GroupDocs.Merger.Cloud.Sdk.Client;
using GroupDocs.Merger.Cloud.Sdk.Model.Requests;
using System;

namespace GroupDocs.Merger.Cloud.Examples.CSharp
{
    // Merge Specific Pages from PDF Documents
    class Merge_PDF_Pages
    {
        public static void Run()
        {
            // Create configuration with your Client ID and Client Secret
            var configuration = new Configuration("YourClientID", "YourClientSecret");

            // Initialize the Merger API instance
            var apiInstance = new MergerApi(configuration);

            // Create a new merge request for specific pages from two PDF files
            var request = new JoinRequest(new JoinOptions()
            {
                FileInfo = new FileInfo() { FilePath = "PDF/document1.pdf" }, // First file
                JoinItems = new List<JoinItem>() {
                    new JoinItem() { FileInfo = new FileInfo() { FilePath = "PDF/document2.pdf" }, Pages = new List<int> { 1, 3, 5 } }, // Select specific pages
                },
                OutputPath = "MergedOutput/merged.pdf" // Output path
            });

            // Call the API to merge the selected pages
            apiInstance.Join(request);
            Console.WriteLine("Specific pages merged successfully.");
        }
    }
}

Merge Documents Across Formats (DOCX, PDF) into PDF

Learn how to merge documents of different formats (e.g., Word DOCX and PDF) into a single PDF document using GroupDocs.Merger Cloud API in C#. This process supports cross-format document merging.

// Initialize GroupDocs.Merger Cloud API for merging across formats
using GroupDocs.Merger.Cloud.Sdk.Api;
using GroupDocs.Merger.Cloud.Sdk.Client;
using GroupDocs.Merger.Cloud.Sdk.Model.Requests;
using System;

namespace GroupDocs.Merger.Cloud.Examples.CSharp
{
    // Merge Different Formats (DOCX, PDF) into PDF
    class Merge_Cross_Format_Documents
    {
        public static void Run()
        {
            // Create configuration with your Client ID and Client Secret
            var configuration = new Configuration("YourClientID", "YourClientSecret");

            // Initialize the Merger API instance
            var apiInstance = new MergerApi(configuration);

            // Create a new merge request for a DOCX and PDF file
            var request = new JoinRequest(new JoinOptions()
            {
                FileInfo = new FileInfo() { FilePath = "Word/document1.docx" }, // First file
                JoinItems = new List<JoinItem>() {
                    new JoinItem() { FileInfo = new FileInfo() { FilePath = "PDF/document2.pdf" } }, // Second file
                },
                OutputPath = "MergedOutput/merged_output.pdf" // Output path
            });

            // Call the API to merge the documents into a PDF
            apiInstance.Join(request);
            Console.WriteLine("Documents merged into PDF successfully.");
        }
    }
}

Product Docs Swagger Examples Blog Support Dashboard


Tags

Document Merging API | .NET Cloud API | GroupDocs.Merger Cloud | REST API | Page Manipulation | Document Security | Password Protection | Cloud Storage Integration | File Operations | Folder Operations | Document Splitting | PDF Merging | Cross-format Merging | Word Document Merging | Excel File Merging | Presentation Merging | Document Reorganization | API Explorer | Comprehensive Documentation | Multi-Platform Support | Secure API Access | GitHub Repository | Data Encryption | Client ID and Secret | Scalable Infrastructure | Fast Processing | Document Joining | Content Management | Customizable Document Processing | Document Manipulation API | Real-time API Integration | Merge Multiple Formats | Portable Document Format | OpenDocument Formats | Cross-platform API


 English