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/

  • 包含適用於 Windows 的 Chrome(預設)渲染器的特定依賴關係
  • 預設套件將在運行時下載 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 或目標平台未知的高便攜性應用程式非常有用
  • 安裝說明:

    • 設置 AutomaticallyDownloadNativeBinariestrue。 (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.*
  • 包含 Windows、Linux 和 Mac 的(舊版)WebKit 渲染器的依賴關係
  • 預設為 WebKit 渲染器
Curtis Chau
技術作家

Curtis Chau 擁有卡爾頓大學計算機科學學士學位,專注於前端開發,擅長於 Node.js、TypeScript、JavaScript 和 React。Curtis 熱衷於創建直觀且美觀的用戶界面,喜歡使用現代框架並打造結構良好、視覺吸引人的手冊。

除了開發之外,Curtis 對物聯網 (IoT) 有著濃厚的興趣,探索將硬體和軟體結合的創新方式。在閒暇時間,他喜愛遊戲並構建 Discord 機器人,結合科技與創意的樂趣。

準備好開始了嗎?
Nuget 下載 16,154,058 | 版本: 2025.11 剛剛發布