为项目选择合适的 IronPDF 版本

This article was translated from English: Does it need improvement?
Translated
View the article in English

我看到有几个不同版本的IronPDF。 我怎么知道哪一个最适合我?

为了避免缺少依赖项问题,不建议使用IronPdf.Slim。 然而,当目标操作系统未知时,IronPdf.Slim非常有用。 要允许在运行时下载 Windows、Linux 或 macOS 依赖项,必须将 IronPdf.Installation.AutomaticallyDownloadNativeBinaries 设置为 true

请注意,对于IronPdf.Slim,除了便于携带外,它在运行时不会为用户节省任何空间。IronPdf依赖于两个依赖项:IronPdf.Slim(包含IronPdf.dll)和IronPdf.Native.Chrome(包含平台上Chrome(默认)渲染器)。 例如,在 Windows 环境下运行时,将下载 IronPdf.Native.Chrome.Windows,在 Linux 上将下载 IronPdf.Native.Chrome.Linux,对于 macOS,取决于使用的处理器,将下载 IronPdf.Native.Chrome.MacOSIronPdf.Native.Chrome.MacOS.ARM

IronPdf

https://www.nuget.org/packages/IronPdf/

  • 包含适用于Chrome(默认)渲染器的Windows特定依赖项
  • 默认包,将在运行时下载特定于Windows的依赖项。
  • 默认使用 Chrome 渲染器
  • 支持所有平台,但Windows平台无需任何额外下载即可使用。
  • 适用于Windows用户或默认用户。 适用于所有平台

IronPdf.Slim

https://www.nuget.org/packages/IronPdf.Slim/

  • 不包括 Windows、Linux 或 macOS 的特定依赖项
  • 在运行时将下载 Windows、Linux 或 macOS 的依赖项。
  • 除非另有说明,默认在所有平台上使用 Chrome 渲染器。
  • 适用于希望在运行时下载特定平台依赖的跨平台解决方案。
  • 支持所有平台,但平台特定的依赖项将在程序首次运行时下载。
  • 适用于AWS Lambda或目标平台未知的高度可移植应用程序
  • 安装说明:

    • AutomaticallyDownloadNativeBinaries设置为true。 (API 参考) 这将使 Windows、Linux 或 macOS 的依赖项在运行时被下载。
  IronPdf.Installation.AutomaticallyDownloadNativeBinaries = true;
  IronPdf.Installation.AutomaticallyDownloadNativeBinaries = true;
IronPdf.Installation.AutomaticallyDownloadNativeBinaries = True
$vbLabelText   $csharpLabel

IronPdf.Linux

https://www.nuget.org/packages/IronPdf.Linux/

  • 包含Linux特定的Chrome(默认)渲染器依赖项
  • 默认使用 Chrome 渲染器
  • 支持所有平台,但Linux平台无需任何额外下载即可工作。
  • 适用于 Linux 高级用户,特别是 Docker 和云用户

IronPdf.MacOs

https://www.nuget.org/packages/IronPdf.MacOs/

  • 包含适用于Chrome(默认)渲染器的Mac特定依赖项
  • 默认使用 Chrome 渲染器
  • 适用于macOS开发者

IronPdf.Classic

https://www.nuget.org/packages/IronPdf.Classic/

  • 包含 IronPdf.Slim 和 IronPdf.Native.WebKit.*
  • 包含(旧版)WebKit渲染器的Windows、Linux和Mac依赖项
  • 默认使用 WebKit 渲染器