Java Viewer API - display documents within your applications

API to view over 50 document formats from any Java based application without requiring any external viewers.

  Download Free Trial
Java Viewer API

GroupDocs.Viewer for Java


GroupDocs.Viewer for Java is a compelling document viewer API. Use it within your Java applications for rendering more than 50 documents and image formats. It rasterizes both documents and images. This Java API renders text from documents and converts it to SVG, HTML and CSS – offering file rendering with high fidelity true-text.

Advanced Java Document Viewer API Features



Render email attachments


HTML Representation : Rasterize documents and convert them to SVG+HTML+CSS


Image Representation: Rasterize documents and convert them to image format


PDF Representation: Convert documents to PDF format for displaying


Display documents in your application in its original format


Use Cache feature for fast loading only for HTML5 and image representation


Rotate Pages: supported with only HTML5 and Image representations


Reorder Pages: only for HTML5 and Image representations


Watermark: Add text as watermark to all pages and images of the output

Quick & Reliable Document Viewer API

Viewer API has the ability to quickly display different document formats with just a few lines of code. It's simple

Get image representation of the document pages - Java

 // Set viewer configuration
ViewerConfig  config = new ViewerConfig();
 // Create ViewerHandler
ViewerImageHandler _imageHandler = new ViewerImageHandler(config);
 // Get images
List<PageImage> pages = (List<PageImage>) _imageHandler.GetPages("sample.docx");

Java Viewer API Common Functionalities

Besides above features, API allows viewing functionality in HTML or image format as a whole document, page-by-page or custom range of pages. It could be further characterized via the following key functions

  • Allowing all application functionality to be controlled programmatically
  • Render files as HTML or image for each document type
  • Set of predefined options for viewing in all modes with proper default values for each option
  • Multiple rendering options - including transformations and watermarking
  • Abstract Storage and Cache API

Support and Learning Resources


GroupDocs.Viewer offers individual file viewer APIs for other popular development environments as listed below: