.NET Standard 2.0 API Limitations
Limitations of .NET Standard 2.0 compared to .NET API
This article is about the limitations of .NET Standard 2.0 compared to .NET API or GroupDocs.Viewer.
- 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 .NET Standard is intended to be used in a Linux environment, an additional NuGet package should be referenced to make it work correctly with graphics: SkiaSharp.NativeAssets.Linux for Ubuntu (it also should work on most Debian-based Linux distributions) or Goelze.SkiaSharp.NativeAssets.AlpineLinux for Alpine Linux.
When using GroupDocs.Viewer in a non-Windows environment in order to improve rendering results we do recommend installing the following packages :
- libgdiplus - is the Mono library that provides a GDI+-compatible API on non-Windows operating systems.
- libc6-dev - package contains the symlinks, headers, and object files needed to compile and link programs which use the standard C library.
- ttf-mscorefonts-installer - package with Microsoft compatible fonts.
To install packages on Debian-based Linux distributions use apt-getutility:
- sudo apt-get install libgdiplus
- sudo apt-get install libc6-dev
- sudo apt-get install ttf-mscorefonts-installer
You may easily run the code above and see the feature in action in our GitHub examples:
- GroupDocs.Viewer for .NET examples, plugins, and showcase
- GroupDocs.Viewer for Java examples, plugins, and showcase
- Document Viewer for .NET MVC UI Example
- 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
Free Online App
Along with full-featured .NET 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.