IronPDF Slim Version Explained

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

什么是 IronPdf.Slim?

IronPdf.Slim 可用于减少初始部署大小。这在初始包大小受限的环境中非常有用,例如在安装了 IronPDF 的 AWS Lambda 容器中。 关于此包的附加信息如下:

  • 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 源传递二进制文件。
  • 确保您具有必要的读取、写入和执行权限,以允许将二进制文件放置在项目文件夹中。

请注意预期使用 IronPdf.Slim 包初次运行项目时间较长,以完成上述操作。

如果在项目中使用 IronPdf.Slim 仍有问题,请随时联系支持

Curtis Chau
技术作家

Curtis Chau 拥有卡尔顿大学的计算机科学学士学位,专注于前端开发,精通 Node.js、TypeScript、JavaScript 和 React。他热衷于打造直观且美观的用户界面,喜欢使用现代框架并创建结构良好、视觉吸引力强的手册。

除了开发之外,Curtis 对物联网 (IoT) 有浓厚的兴趣,探索将硬件和软件集成的新方法。在空闲时间,他喜欢玩游戏和构建 Discord 机器人,将他对技术的热爱与创造力相结合。

准备开始了吗?
Nuget 下载 16,154,058 | 版本: 2025.11 刚刚发布