Java API to Render & Display Documents

Document Viewer Library to Develop Java Applications that Natively Render, View and Manipulate, Multi-Format Documents Supporting 170+ File Formats.

Download Free Trial

GroupDocs.Viewer for Java combines a powerful set of document viewer APIs to display images and document formats in your Java applications without needing to install additional software. It natively rasterizes the documents and converts them into SVG+HTML+CSS to enhance the quality of document viewing while delivering a true-text, high-fidelity output. Using the document rendering API – quickly view PDF, HTML, XML, Microsoft Office Word, Excel worksheets, PowerPoint presentations, Outlook emails, Visio diagrams, Project, metafiles, images and various other file formats with ease and fewer programming hazards. It can also display password-protected files and allow to get document representation as HTML, image or PDF form after the rendering. Our file viewer library is quite customizable, as it allows you to display the whole document, or render it partially to speed up the process. Through GroupDocs.Viewer for Java API, you can view pages, specific cell range in a spreadsheet or even render an individual document layer in formats, such as, PDF and CAD.

GroupDocs.Viewer for Java API allows you to render documents with/without annotation or comments for supported file formats. It also enables you to add custom font directories and extract basic document information such as FileType, Extension, Name, PageCount, etc.

GroupDocs.Viewer for Java is compatible with all Java versions and supports popular operating systems (Windows, Linux, macOS) that are capable to run Java runtime.

GroupDocs.Viewer for Java Features

Viewer for HTML, PDF, Images, Word, Excel & other Document Formats

Render AutoCAD Drawings (DWG) files to SVG format

Adjust the Background Color of the Converted File

Rasterize and Convert Documents into SVG, HTML & CSS

Get HTML, Image or PDF Representation of Documents through Rendering

Cached Versions of Documents to Make Loading Time Faster

Configure Custom Font Directories

Apply Encoding Standards to Word, Excel and Email Documents

Remotely Render Documents at FTP or Cloud Storage

Remove or Keep Annotations & Comments while Rendering

Render Document Pages as Separate HTML Pages

Render Hidden Slides and Pages & Apply Page Reorder to Rendered Document

Render Range of Pages, Specific Pages or All Pages into HTML

Render or hide document comments

Create Responsive HTML for Some Document Formats through Rendering

Reduce Resultant File Size of Rendered HTML by Excluding Fonts

Remove Comments, Extra White-Spaces etc, to Minify Output HTML & CSS

Use Coordinates of Source Document to Read the Contained Text

Show/Hide Cell Border in Excel Sheets of the Rendered Output

Render Specific Number of Rows of Each Page in an Excel Sheet

Render Model and all Non-Empty Layouts or a Particular Layout of a CAD File

Render the Items in Outlook Data Files (OST/PST) as PDF

Tile Rendering or Render by Coordinates of CAD Documents as Image, HTML or PDF

Set printing restrictions when rendering to PDF

Efficient & Reliable API for Viewing Documents

GroupDocs.Viewer for Java API can be used to view, render and display documents of more than 150 different file formats. It is done reliably and efficiently while keeping the content as well as the structure of the document intact. The following example shows the level of ease with which GroupDocs.Viewer for Java API renders a DOCX file as an image file using Java:

// Initialize Viewer
Viewer viewer = new Viewer("sample.docx");
// Create view options
PdfViewOptions viewOptions = new PdfViewOptions();
// Convert file to PDF and check the output in the current directory

Perform Transformations While Rendering Documents

GroupDocs.Viewer for Java API offers you various transformation options to be applied on the rendered document for a more customized view and display. You can rotate pages by providing the angle. You can the order of the rendered pages. Apply specific text as a watermark to rendered pages or images. Through GroupDocs.Viewer for Java API, you also have the ability to add custom fonts to the document being rendered.

Working with Email Attachments

GroupDocs.Viewer for Java API lets you fetch specific or all attachments of an email. Once you get the required email attachments, you can render these attached files to images or HTML.

Support and Learning Resources

GroupDocs.Viewer offers document viewing APIs for other popular development environments

Back to top