Java API Limitations
Limitations of Java
This article is about the limitations of GroupDocs.Viewer for Java.
Limitations
- 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.
- 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).
Recommendations
When using GroupDocs.Viewer in a non-Windows environment in order to improve rendering results we do recommend installing the following package :
ttf-mscorefonts-installer
- package with Microsoft compatible fonts.
To install packages on Debian-based Linux distributions use apt-getutility:
sudo apt-get install msttcorefonts
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:
- GroupDocs.Viewer for Java examples, plugins, and showcase
- Document Viewer for .NET App WebForms UI Modern Example
- Document Viewer for Java App Dropwizard UI Modern Example
- Document Viewer for Java Spring UI Example
- GroupDocs.Viewer for .NET samples, plugins and showcase
- Document Viewer for .NET MVC UI Example
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.