選擇適合專案的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/

  • 包含適用於 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 渲染器