Giter Site home page Giter Site logo

groupdocs-viewer-cloud / groupdocs-viewer-cloud-java Goto Github PK

View Code? Open in Web Editor NEW
1.0 5.0 3.0 1.43 MB

Java SDK to communicate with GroupDocs.Viewer REST API. View or render Word, Excel, PowerPoint, CAD, Visio, PDF, OpenDocument, email & image formats.

Home Page: https://products.groupdocs.cloud/viewer/java

License: MIT License

Java 100.00%
groupdocs-viewer-cloud groupdocs viewer-cloud-sdk sdk java rest-api excel powerpoint visio cad

groupdocs-viewer-cloud-java's Introduction

GroupDocs.Viewer Cloud SDK for Java

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

Requirements

  • Java SE Development Kit 8

Installation

Maven

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-viewer-cloud</artifactId>
    <version>24.3</version>
    <scope>compile</scope>
</dependency>

Gradle

Add following repository and dependency to your build.gradle:

repositories {
    maven {
        url "https://repository.groupdocs.cloud/repo/"
    }
}

...
dependencies {
    ...
    implementation 'com.groupdocs:groupdocs-viewer-cloud:24.3'
}

Getting Started

  • Please follow the installation instruction
  • Get your AppSID and AppKey at Dashboard and use them in your code
  • Build and execute
  • Explore more samples at GitHub

Example:

import com.groupdocs.cloud.viewer.client.*;
import com.groupdocs.cloud.viewer.model.*;
import com.groupdocs.cloud.viewer.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();
        }
    }
}

Manual build and installation from sources

Building the API client library requires Maven to be installed. Refer to the official documentation for more information.

At first generate the JAR by executing following command in "/src" working directory:

mvn package -D maven.test.skip=true

Then manually install the following JARs:

  • target/groupdocs-viewer-cloud-24.3.jar
  • target/lib/*.jar

Licensing

All GroupDocs.Viewer 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.

groupdocs-viewer-cloud-java's People

Contributors

babar-raza avatar product-team avatar rizwanniazigroupdocs avatar saudaspose avatar vladimir-litvinchik avatar yevgen-nykytenko avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

groupdocs-viewer-cloud-java's Issues

Could not find com.groupdocs:groupdocs-viewer-cloud:21.8.

I can successfully add the dependencies, and maven url to the app, and project gradle files respectively for my android project and then Sync android project. But Still I am getting this error when rebuilding the project.
Also while Importing looks like groupdocs isn't included in my project.

Project level gradle file

buildscript {
      repositories {
           google()
           mavenCentral()
           maven {
              url "https://repository.groupdocs.cloud/repo/"
           }
      }
     dependencies {
     classpath "com.android.tools.build:gradle:7.0.0-beta04"

       // NOTE: Do not place your application dependencies here; they belong
      // in the individual module build.gradle files
      }
}

App level gradle file

dependencies {

    implementation 'androidx.appcompat:appcompat:1.3.1'
    implementation 'com.google.android.material:material:1.4.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
    implementation 'androidx.navigation:navigation-fragment:2.3.5'
    implementation 'androidx.navigation:navigation-ui:2.3.5'
    testImplementation 'junit:junit:4.+'
    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'

    // Groupdocs Dependencies 
    implementation 'com.groupdocs:groupdocs-viewer-cloud:21.8'
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.