Java API Limitations

Limitations of Java

This article is about the limitations of GroupDocs.Viewer for Java.


  1. Because of the lack of Windows fonts in target OS (Android, macOS, Linux, etc), fonts used in documents are substituted with available fonts, this might lead to inaccurate document layout when rendering the document to PNG, JPG, and PDF.
  2. If GroupDocs.Viewer for Java is intended to be used in a Linux environment, an additional package should be referenced to make it work correctly with fonts: ttf-mscorefonts-installer for Ubuntu (it also should work on most Debian-based Linux distributions).


When using GroupDocs.Viewer in a non-Windows environment in order to improve rendering results we do recommend installing the following package :

  1. ttf-mscorefonts-installer - package with Microsoft compatible fonts.

To install packages on Debian-based Linux distributions use apt-getutility:

  1. sudo apt-get install msttcorefonts
  2. sudo fc-cache -fv

More resources

Advanced Usage Topics

To learn more about document viewing features, please refer to the advanced usage section.

GitHub Examples

You may easily run the code above and see the feature in action in our GitHub examples:

Free Online App

Along with full-featured Java library we provide simple but powerful free Apps. You are welcome to view Word, PDF, Excel, PowerPoint documents with free to use online GroupDocs Viewer App.