Non-Windows Environment

Working with .NET Core DLLs in Non-Windows Environment

As Documentize for .NET provides .NET Standard 2.0 (.NET Core 2.0) support, it can be used in Core Applications running in Linux-like operating systems. We are constantly working on improving the .NET Core support in our API. However, there are some operations which we recommend our customers perform to get better results while using features of Documentize for .NET. Please install:

  • libgdiplus package
  • Package with Microsoft-compatible fonts: ttf-mscorefonts-installer (e.g., sudo apt-get install ttf-mscorefonts-installer). These fonts should be placed in /usr/share/fonts/truetype/msttcorefonts directory as Documentize for .NET scans this folder on Linux-like operating systems. In case the operating system has another default folder/directory for fonts, you should use the following line of code before performing any operation using Documentize:
    Documentize.Pdf.Text.FontRepository.Sources.Add(new FolderFontSource("<user's path to ms fonts>"));