IronPDF Slim Version Explained

This article was translated from English: Does it need improvement?
Translated
View the article in English

什麼是 IronPdf.Slim?

IronPdf.Slim 可用於減少 初始 部署大小。這在一些環境中非常有用,比如 AWS Lambda,其初始套件大小有限,並將 IronPDF 安裝到容器中。 此套件的其他信息如下:

  • IronPdf.Slim 僅包含 IronPdf.dll
  • 支援所有平台,但不包含 Windows、Linux 或 MacOS 的特定依賴項
  • 適用於目標平台未知的跨平台解決方案/高度可攜帶的應用程式
  • 需要安裝 IronSoftware.Native.PdfModel 套件。

IronPdf.Native.Chrome 的依賴套件包含特定操作系統(Windows/Linux/MacOs/MacOs.ARM)的 Chrome 渲染引擎二進制文件,將在運行時下載。為確保成功運行:

  • 必須將Installation.AutomaticallyDownloadNativeBinaries 設置為 true

    // Enables automatic downloading of native binaries needed for IronPdf.Slim operation
    IronPdf.Installation.AutomaticallyDownloadNativeBinaries = true;
    // Enables automatic downloading of native binaries needed for IronPdf.Slim operation
    IronPdf.Installation.AutomaticallyDownloadNativeBinaries = true;
    ' Enables automatic downloading of native binaries needed for IronPdf.Slim operation
    IronPdf.Installation.AutomaticallyDownloadNativeBinaries = True
    $vbLabelText   $csharpLabel
  • 確保你的項目連接到互聯網以便通過 NuGet 源交付二進制文件。
  • 確保有必要的讀寫和執行權限以允許將二進制文件放置到項目文件夾中。

[{i:(項目首次運行時,使用 IronPdf.Slim 套件時需花費較長時間以完成上述操作。)}]

如果在項目中使用 IronPdf.Slim 仍然有問題,請不要猶豫,聯絡 支援

Curtis Chau
技術作家

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

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

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