IronPDF 高級安裝
從 IronPDF v2022.1 版及更高版本開始,使用者擁有一些進階工具來為特定平台安裝 IronPDF。
與其安裝 IronPDF
NuGet 套件,我們可以在 NuGet 中搜尋其他適合我們使用案例的 IronPDF 套件。 API保持不变,但它們的部署方式不同。
有趣的是,即使我們載入特定的套件如 IronPdf.Linux 用於 Linux 優化的部署,你仍然可以在像 Windows 這樣的普通作業系統上使用 Visual Studio 進行開發。!
IronPdf NuGet 套件








最常使用的。 配置使您能夠在Visual Studio中盡快開始運行。 適用於大多數專案。
- 包含IronPdf.Slim
- 包含適用於 Chrome 的 Windows 專用依賴項(默認)渲染器
- 默認包將在運行時下載Windows專用依賴項。
- 預設為 Chrome 渲染器
- 支持所有平台,但Windows平台無需任何額外下載即可使用
- 適用於 Windows 使用者或預設使用者
- 適用於所有平台
IronPdf.Slim NuGet 套件



非常適合磁碟占用空間最小或可能分發到許多不同作業系統目標的應用程式。 您的應用程式所需的精確 Chromium / WebKit 渲染引擎將在目標機器上的運行時按需下載。
PM > Install-Package IronPdf.Slim
- 所有其他套件都引用此套件。
- 包含實際的 IronPdf.dll
- 不包括 Windows、Linux 或 macOS 特定的依賴性。
- 在執行時將下載 Windows、Linux 或 macOS 的依賴項。
- 除非另有說明,否則在所有平台上預設使用 Chrome 渲染器。
- 適用於希望在運行時下載特定平台依賴的跨平台解決方案。
- 支持所有平台,但平台特定的依賴項將在程序第一次運行時下載。
- 需要在獨立使用時具備網際網路存取和磁碟存取權限。
- 需要安裝IronSoftware.Native.PdfModel套件。
- 適用於目標平台未知的高度可攜式應用程式。
IronPdf.Linux NuGet 套件








理想適合在 Linux 上部署 IronPdf. 設計時考慮到雲端的需求。 在 AWS 和 Lambda、Azure Functions 以及 Linux 模式下的 WebApps 上運作非常良好。
PM > Install-Package IronPdf.Linux
- 包含IronPdf.Slim
- 包含適用於 Chrome 的 Linux 專用依賴性(默認)渲染器
- 預設為 Chrome 渲染器
- 支援所有平台,但 Linux 平台無需任何額外下載即可運作
- 適用於 Linux 高級用戶,特別是 Docker 和雲端用戶。
IronPdf.MacOs & IronPdf.MacOs.ARM NuGet 套件


適用於特定部署的 NuGet 套件IronPdf 在 macOS 上的相容性
PM > Install-Package IronPdf.MacOsARM
- 包含IronPdf.Slim
- 包含用於 Chrome 的 Mac 專属依賴项(默認)渲染器
- 預設為 Chrome 渲染器
- 對 macOS 開發者有用
IronPdf.Classic NuGet 套件





適用於在 2021 年 8 月之前使用 IronPDF 的老客戶,希望其現有的 HtmlToPdf 渲染保持不變。 使用我們的2020-2021 WebKit渲染器。
PM > Install-Package IronPdf.Classic
- 包含IronPdf.Slim和IronPdf.Native.WebKit。
- 包含Windows、Linux和Mac的依賴項(遺產)WebKit "HTML 轉 PDF" 渲染器
將預設使用舊版的WebKit渲染器
如果您想使用較新的 Chromium 版本,請參考以下的疑難排解文章:IronPdf.Native.UpdatedChrome.