為專案選擇合適的 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.Classic

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

  • 內含 IronPdf.Slim 及 IronPdf.Native.WebKit.*
  • 包含 (舊版) WebKit 渲染器的 Windows、Linux 及 Mac 依賴項
  • 預設使用 WebKit 渲染引擎
Curtis Chau
技術撰稿人

Curtis Chau 擁有卡爾頓大學(Carleton University)的電腦科學學士學位,專精於前端開發,並精通 Node.js、TypeScript、JavaScript 及 React。他熱衷於打造直觀且美觀的用戶介面,喜歡運用現代框架,並創建結構完善、視覺上吸引人的手冊。

除了開發工作之外,Curtis 對物聯網(IoT)抱有濃厚興趣,致力於探索整合硬體與軟體的創新方法。閒暇時,他喜歡玩遊戲和開發 Discord 機器人,將對科技的熱愛與創意相結合。

準備開始了嗎?
Nuget 下載 19,014,616 | 版本: 2026.5 just released
Still Scrolling Icon

還在往下捲動嗎?

想要快速確認成果嗎? PM > Install-Package IronPdf
執行範例 觀看您的 HTML 轉為 PDF。