選擇適合項目的 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 依賴項。
    // 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.經典

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 熱衷於創建直觀且美觀的用戶界面,喜歡使用現代框架並打造結構良好、視覺吸引人的手冊。

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

準備好開始了嗎?
Nuget 下載 16,685,821 | 版本: 2025.12 剛發表