Choosing the Right IronPDF Version for Projects

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。 In Linux, IronPdf.Native.Chrome.Linux will be downloaded, and for macOS, depending on which processor is being used, either IronPdf.Native.Chrome.MacOS or IronPdf.Native.Chrome.MacOS.ARM will be downloaded.

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渲染器 on all platforms unless otherwise specified
  • 适用于希望在运行时下载平台特定依赖项的跨平台解决方案
  • 支持所有平台,但在首次运行程序时会下载平台特定的依赖项
  • 适用于AWS Lambda或目标平台未知的高度便携的应用程序
  • 安装说明:

    • AutomaticallyDownloadNativeBinaries设置为true。 (API参考) 这将允许在运行时下载Windows、Linux或macOS依赖项。
    // Enable automatic downloading of platform-specific dependencies
    IronPdf.Installation.AutomaticallyDownloadNativeBinaries = true;
    // Enable automatic downloading of platform-specific dependencies
    IronPdf.Installation.AutomaticallyDownloadNativeBinaries = true;
    ' Enable automatic downloading of platform-specific dependencies
    IronPdf.Installation.AutomaticallyDownloadNativeBinaries = True
    $vbLabelText   $csharpLabel

IronPdf.Linux

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

  • 包含Chrome(默认)渲染器的Linux特定依赖项
  • 默认使用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渲染器
Curtis Chau
技术作家

Curtis Chau 拥有卡尔顿大学的计算机科学学士学位,专注于前端开发,精通 Node.js、TypeScript、JavaScript 和 React。他热衷于打造直观且美观的用户界面,喜欢使用现代框架并创建结构良好、视觉吸引力强的手册。

除了开发之外,Curtis 对物联网 (IoT) 有浓厚的兴趣,探索将硬件和软件集成的新方法。在空闲时间,他喜欢玩游戏和构建 Discord 机器人,将他对技术的热爱与创造力相结合。

准备开始了吗?
Nuget 下载 16,154,058 | 版本: 2025.11 刚刚发布