Skip to content
Java library for communicating with the GroupDocs.Merger Cloud API
Java
Branch: master
Clone or download
Latest commit 4d3e6c2 Oct 24, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
resources Updated sources Oct 18, 2019
src Updated sources Oct 18, 2019
.gitignore Updated sources Oct 18, 2019
LICENSE Updated sources Oct 18, 2019
README.md Updated sources Oct 24, 2019
pom.xml Updated sources Oct 18, 2019
simplified-pom.template Updated sources Oct 18, 2019

README.md

GroupDocs.Merger Cloud SDK for Java

This repository contains GroupDocs.Merger Cloud SDK for Java source code. This SDK allows you to work with GroupDocs.Merger Cloud REST APIs in your Java applications.

GroupDocs.Merger Cloud allows you to merge documents and manipulate document structure across wide range of supported document types - PDF, DOCX/DOC, PPTX/PPT, XLSX/XLS, VSDX/VSD, ODT, ODS, ODP, HTML, EPUB and many others. Merge several documents into one, split single document to multiple documents, reorder or replace document pages, change page orientation, manage document password and perform other manipulations with GroupDocs.Merger Cloud API.

Requirements

Building the API client library requires Maven to be installed.

Installation

To install the API client library to your local Maven repository, execute:

mvn install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn deploy

Refer to the official documentation for more information.

Maven users

Add following repository and dependency to your project's POM

<repository>
    <id>groupdocs-artifact-repository</id>
    <name>GroupDocs Artifact Repository</name>
    <url>https://repository.groupdocs.cloud/repo</url>
</repository>
<dependency>
    <groupId>com.groupdocs</groupId>
    <artifactId>groupdocs-merger-cloud</artifactId>
    <version>19.10</version>
    <scope>compile</scope>
</dependency>

Others

At first generate the JAR by executing:

mvn package

Then manually install the following JARs:

  • target/groupdocs-merger-cloud-19.10.jar
  • target/lib/*.jar

Getting Started

Please follow the installation instruction and execute the following Java code:

import com.groupdocs.cloud.merger.client.*;
import com.groupdocs.cloud.merger.model.*;
import com.groupdocs.cloud.merger.api.InfoApi;

import java.util.*;

public class ApiExample {

    public static void main(String[] args) {
        //TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required).
        String appSid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
        String appKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";

        Configuration configuration = new Configuration(appSid, appKey);
        
        InfoApi infoApi = new InfoApi(configuration);

        try {
            FormatsResult response = infoApi.getSupportedFileFormats();
            for (Format format : response.getFormats()) {
                System.out.println(format.getFileFormat());
            }
        } catch (ApiException e) {
            System.err.println("Failed to get supported file formats");
            e.printStackTrace();
        }
    }
}

Licensing

All GroupDocs.Merger Cloud SDKs are licensed under MIT License.

Resources

Contact Us

Your feedback is very important to us. Please feel free to contact us using our Support Forums.

You can’t perform that action at this time.