Document Viewing REST API & Java Cloud SDK

Build robust document rendering & viewing tools using Java REST API. Boost your development without worrying about underlying details.

  • GroupDocs.Viewer Cloud SDK for cURL
  • GroupDocs.Viewer Cloud SDK for .NET
  • GroupDocs.Viewer Cloud SDK for PHP
  • GroupDocs.Viewer Cloud SDK for Python
  • GroupDocs.Viewer Cloud SDK for Ruby
  • GroupDocs.Viewer Cloud SDK for Node.js
  • GroupDocs.Viewer Cloud SDK for Android
Start Free Trial

GroupDocs.Viewer Cloud is a true REST API that gives the complete freedom of platform & programming language whereas GroupDocs.Viewer Cloud SDK for Java is built as a layer on the top of GroupDocs.Viewer Cloud REST API, allowing a higher level of abstraction so that you don’t need to know the REST API to use this SDK.

GroupDocs.Viewer Cloud API allows you to seamlessly enhance your application with the capability to render a number of document formats with the ability to view a specific document in HTML, image, PDF or its original format. You also get the flexibility to render the whole document, page by page or custom range of pages. GroupDocs.Viewer Cloud SDK for Java has been developed to help you integrate all these features in your Java application without any hassle.

How to View a file on Java

  • Create an instance of Configuration using available Client Id and Client Secret.
  • Create an instance of Configuration using instance of Configuration.
  • Create an instance of FileInfo and set path to input file using FileInfo.setFilePath method.
  • Create an instance of ViewOptions and use setFileInfo with instance of FileInfo.
  • Use ViewApi.createView to render input file into images and HTML.

Frequently Asked Questions

I want to create my own Java application to view documents?

Check out GroupDocs.Viewer Cloud SDK for Java at GitHub if you are looking for the source code to view file in the Cloud.

Can I try GroupDocs.Viewer REST APIs on Java for free?

You can try GroupDocs.Viewer Low-Code Java APIs without any limitations.

I do not want to upload my confidential files anywhere? What are my options?

GroupDocs.Viewer Cloud is also available as Docker image which can be used to self-host the service. Or you may build your own services using GroupDocs.Viewer High-code APIs which currently drive our REST APIs.

Advanced Document Viewer REST API Features

Render documents as HTML5

Render documents as Image

Rotate, reorder & watermark pages

Render documents as PDF

Render document attachments

APIs are secured and require authentication

Quick Files and Folder List from the Storage

The cloud-based viewer API can quickly provide the complete list of existing files and folders with few lines of code.

Get Files List from the Specific Storage and Folder - Java

//Get your App SID and App Key at https://dashboard.groupdocs.cloud (free registration is required).

FolderApi apiInstance = new FolderApi(appSID, appKey);
GetFilesListRequest request = new GetFilesListRequest("folder name", "storage name");
FilesList response = apiInstance.getFilesList(request);
for (StorageFile storageFile : response.getValue()) {
System.out.println((storageFile.getIsFolder() ? "Folder - " : "File - ") + storageFile.getPath());
}

Quickly Get Started with Document Viewing REST API

Get started quickly using GroupDocs.Viewer Cloud REST API with the GroupDocs.Viewer Cloud SDK for Java. It facilitates the users and speeds up the development of their applications written in Java while taking care of a lot of low-level details of making requests and handling responses and lets the users focus on writing code specific to their particular project.

Easy Customization Options

GroupDocs.Viewer Cloud SDK is 100% tested and out of the box running. The SDK is open source and has an MIT license. You can use it, and even customize it for absolutely free of charge.

Document Rendering

Render and display various document formats within Java applications.

Document Viewing Options

Choose from multiple viewing options, including whole documents, specific pages, or custom page ranges.

Output Formats

View documents in HTML, image (JPEG, PNG, TIFF), or PDF formats.

Simplified Integration

Easily incorporate document viewing capabilities into Java applications.

Viewer Customization

Customize viewer settings such as zoom levels, rotation, and text selection.

Metadata Extraction

Extract document metadata, including properties, page count, and file size.

Watermarking and Annotations

Add watermarks to documents and annotate them with text comments, highlights, and shapes.

Secure Communication

Ensure secure communication between the Java application and GroupDocs.Viewer Cloud API.

Efficient Caching

Utilize an efficient caching mechanism to optimize rendering performance.

High Availability

Benefit from the high availability and reliability of GroupDocs.Viewer Cloud for Java.

View Documents using GroupDocs.Viewer Free App

HTMEMFCMAKEMBOXXLTMJP2MAKEVTXXLAMXZDOCXLESSOTSWEBPPS1DIBTGZHPGOSTVSDMPTCDRPPSSCRIPTDWTHPSTPOTXJPGVSTMSXCEPSTXTOTTPCLHTMLCGMCXXASMODTPPTDJVUFODGVSTRSTXLSXRBPSD1ODGDOTMAIJLSJPFNUMBERSBATPPTXPPSMJPMPSM1MASCSVVDWMPXHHGROOVYCMXCGIFNSFPSBPLPSTXZCSSJSTSVERBVSDMPDFDNGPOTMZIPVSDXODSMMFODS7ZCSVSSXMSGTEXSCALASHJ2KSVGVDXFODPGZIPPLTSTLJ2CMHTXMLVBEMLXOBJJSONVSSMPHPJPCMLPYBMPDGNONEOTGWMZXLTXEMLBZ2DCMJPXDXFTARLOGODPCF2MPPCHMSVGZEPUBIFCAS3EMZVSTXPROPERTIESWMFPPSXVCFJPEGXLSXPSTIFFTGAJAVASQLPSDOXPSHAMLPOTPPTMDOCMOTPVSXXMLSASSTAR.GZSCMCCRARDOCMOBIGZMHTMLXLSBDWFDOTAPNGTAR.XZRTFSMLMDIGSVSSDIFFVIMXLSMICOPNGDOTXDWGCPPTIFXLTYAML

Support and Learning Resources

GroupDocs.Viewer Cloud also offers individual document rendering SDKs for other popular languages as listed below:

  English
9a86c5d