##GroupDocs.Viewer for Java ####Spring Sample 2.14.0 Alt text



How-to install/run

#####Windows

  1. Download GroupDocs.Viewer for Java library http://groupdocs.com/java/document-viewer-library
  2. Install GroupDocs.Viewer for Java library into local maven repository http://groupdocs.com/docs/display/viewerjava/GroupDocs.Viewer+for+Java+-+Installation
  3. Download sample sources to any directory.
  4. Open file src\main\resources\application.properties and update configuration (for example update groupdocs.viewer.filePath to set the path to the storage folder).
  5. Run file run.bat by double click to start sample application.
  6. Open URL http://127.0.0.1:8080/ in your browser, make sure that port 8080 is free (you can change port number in your tomcat configuration).

#####Linux

  1. Download GroupDocs.Viewer for Java library http://groupdocs.com/java/document-viewer-library
  2. Install GroupDocs.Viewer for Java library into local maven repository http://groupdocs.com/docs/display/viewerjava/GroupDocs.Viewer+for+Java+-+Installation
  3. Download sample sources to any directory.
  4. Open file src\main\resources\application.properties and update configuration (for example update groupdocs.viewer.filePath to set the path to the storage folder).
  5. Run file run.sh by double click to start sample application (or from terminal).
  6. Open URL http://127.0.0.1:8080/ in your browser, make sure that port 8080 is free (you can change port number in your tomcat configuration).

#####MacOS

  1. Download GroupDocs.Viewer for Java library http://groupdocs.com/java/document-viewer-library
  2. Install GroupDocs.Viewer for Java library into local maven repository http://groupdocs.com/docs/display/viewerjava/GroupDocs.Viewer+for+Java+-+Installation
  3. Download sample sources to any directory.
  4. Open file src\main\resources\application.properties and update configuration (for example update groupdocs.viewer.filePath to set the path to the storage folder).
  5. Run file run.command by double click to start sample application (or from terminal).
  6. Open URL http://127.0.0.1:8080/ in your browser, make sure that port 8080 is free (you can change port number in your tomcat configuration).

How to view/open file documents

  1. Go to http://127.0.0.1:8080/view?file=fileId
  2. Go to http://127.0.0.1:8080/view?file=path_to_file_from_root_dir
  3. Go to http://127.0.0.1:8080/view?file=url_to_file
  4. Go to http://127.0.0.1:8080/view?tokenId=tokenId

Description

A powerful document viewer API that allows you to display over 50 document formats in your Java applications. The viewer can work two ways: by rasterizing documents or by converting them to a combination of SVG, HTML and CSS. Both methods deliver high-fidelity rendering.

Supported file formats include: Microsoft Office, Visio, Project and Outlook documents, PDFs, AutoCAD, image files (TIFF, JPG, BMP, GIF, TIFF, etc.) and more.