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渲染引擎。
- 所有其他包都引用此包
- 包含实际的 IronPdf.dll
- 不包括 Windows、Linux 或 macOS 的特定依赖项
- 在运行时将下载 Windows、Linux 或 macOS 的依赖项。
- 除非另有说明,默认在所有平台上使用 Chrome 渲染器。
- 适用于希望在运行时下载特定平台依赖的跨平台解决方案。
- 支持所有平台,但平台特定的依赖项将在程序首次运行时下载。
- 如果单独使用,需要在运行时访问互联网和磁盘。
- 要求安装IronSoftware.Native.PdfModel包装
- 适用于目标平台未知的高度便携应用程序
IronPdf.Linux NuGet 软件包








适用于在 Linux 上部署 IronPdf.Linux. 为云计算设计。 在AWS和Lambda,Azure Functions以及Linux模式下的WebApps中运行非常好。
- 包含 IronPdf.Slim
- 包含用于Chrome的Linux特定依赖项(默认)呈现器
- 默认使用 Chrome 渲染器
- 支持所有平台,但Linux平台无需任何额外下载即可工作。
- 适用于 Linux 高级用户,特别是 Docker 和云用户
IronPdf.MacOs 和 IronPdf.MacOs.ARM NuGet 软件包


可用于以下特定部署的 NuGet 软件包IronPdf 在 macOS 上的兼容性
- 包含 IronPdf.Slim
- 包含适用于 Chrome 的 Mac 特定依赖项(默认)呈现器
- 默认使用 Chrome 渲染器
- 适用于macOS开发者
IronPdf.Classic NuGet 软件包





对于在2021年8月之前使用IronPDF的老客户,如果希望其现有的HtmlToPdf渲染保持不变,此功能非常有用。 使用我们的2020-2021 WebKit渲染器。
- 包含IronPdf.Slim和IronPdf.Native.WebKit。
- 包含Windows、Linux和Mac依赖项的(传统)WebKit “HTML 转 PDF” 渲染器
将默认使用旧版WebKit渲染器
如果您想使用较新版本的 Chromium,请参阅以下故障排除文章:IronPdf.Native.UpdatedChrome.