IronPdf.Slim:輕量化PDF處理,無需Chrome
何時使用IronPdf.Slim
如果您的專案僅專注於PDF處理,如合併、編輯、加蓋印章、編修或加密,IronPdf.Slim是更佳的選擇。標準IronPDF總是載入Chromium渲染引擎,即使您的應用程式不將HTML或URL轉換為PDF,這可能會產生不必要的負擔。 IronPdf.Slim避免了這種情況,在不需要渲染時保持輕量化。
ChromePdfRenderer是唯一會觸發Chromium下載的類別,例如將HTML、URL或圖像轉換成PDF。 如果您的專案從未這樣做,IronPdf.Slim保持輕量化。設置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渲染引擎二進位檔將在運行時下載。為了確保操作成功:
-
You must set Installation.AutomaticallyDownloadNativeBinaries to
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來源提供二進位檔。
- 確保您擁有必要的讀取、寫入和執行權限,以允許將二進位檔放置在專案資料夾內。
如果在您的項目中使用IronPdf.Slim仍然有問題,請隨時聯繫支援。

