非 Windows 环境
在非 Windows 环境下使用 .NET Core DLL
由于 Documentize for .NET 提供了 .NET Standard 2.0(.NET Core 2.0)支持,它可以在类似 Linux 的操作系统上运行的 Core 应用程序中使用。我们正在不断改进 API 对 .NET Core 的支持。然而,为了在使用 Documentize for .NET 功能时获得更好的效果,我们建议客户执行以下操作。请安装:
libgdiplus 包
Microsoft 兼容字体包: ttf‑mscorefonts‑installer(例如
sudo apt-get install ttf-mscorefonts-installer)。这些字体应放置在/usr/share/fonts/truetype/msttcorefonts目录下,因为 Documentize for .NET 会在类 Linux 操作系统上扫描此文件夹。如果操作系统使用了其他默认的字体文件夹/目录,请在使用 Documentize 进行任何操作之前,先加入以下代码行:Documentize.Pdf.Text.FontRepository.Sources.Add(new FolderFontSource("<user's path to ms fonts>"));