IronPDF 故障排除 部署Pdfium依赖项时出错 解决 PDFium 依赖性错误 Curtis Chau 已更新:2025年6月1日 下载 IronPDF NuGet 下载 DLL 下载 Windows 安装程序 免费试用 LLM副本 LLM副本 将页面复制为 Markdown 格式,用于 LLMs 在 ChatGPT 中打开 向 ChatGPT 咨询此页面 在双子座打开 向 Gemini 询问此页面 在 Grok 中打开 向 Grok 询问此页面 打开困惑 向 Perplexity 询问有关此页面的信息 分享 在 Facebook 上分享 分享到 X(Twitter) 在 LinkedIn 上分享 复制链接 电子邮件文章 This article was translated from English: Does it need improvement? Translated View the article in English Google PDFIUM 是 IronPDF 核心代码的一个重要组件,用于各种与 PDF 编辑和转换 PDF 文档为图像相关的功能。 如果项目文件夹中缺少 PDFIUM 二进制文件,运行时会抛出以下错误。 Unhandled exception. IronSoftware.Exceptions.IronSoftwareDeploymentException: Error while deploying Pdfium for IronPdf: 'Unable to locate 'IronPdfInterop' 将 IronPdf.Native.PdfModel 包安装到项目中通常可以解决此问题。 在 Windows 上,确保目标操作系统已安装Visual C++ 运行时也是明智的做法。 如果这仍然不能解决问题,怎么办? 如果这无法解决问题,我们会提供帮助。兼容性是我们工程团队的首要任务。 请发送电子邮件错误报告至 support@ironsoftware.com。 所有兼容性问题将由高级工程师认真审查。 请务必告知我们正在部署的操作系统/平台,尤其是像 AWS 或 Azure 这样的云平台。 如何在 IronPDF 中启用本地日志记录 附加日志文件到错误报告中,会使我们能够隔离和快速解决问题的概率翻倍。 将这一行放置在您的代码顶部,在运行任何 IronPDF 方法之前(所有版本在 2021.3.1 之后)。 // Enable debugging to generate detailed log files for troubleshooting. IronPdf.Logging.Logger.EnableDebugging = true; // Set the path for the log file. You can specify a directory name or a full file path. IronPdf.Logging.Logger.LogFilePath = "Default.log"; // Set the logging mode to log all events. IronPdf.Logging.Logger.LoggingMode = IronPdf.Logging.Logger.LoggingModes.All; // Enable debugging to generate detailed log files for troubleshooting. IronPdf.Logging.Logger.EnableDebugging = true; // Set the path for the log file. You can specify a directory name or a full file path. IronPdf.Logging.Logger.LogFilePath = "Default.log"; // Set the logging mode to log all events. IronPdf.Logging.Logger.LoggingMode = IronPdf.Logging.Logger.LoggingModes.All; $vbLabelText $csharpLabel IronPDF创建的日志文件位于项目 DLL 部署所在的 /bin 目录中: default.log(部署过程) cef.log(渲染) IronSoftwareCefSubprocess.log(渲染和线程) IronSoftwareEngine.log (用于调试以"从...生成 PDF 时出错"开头的异常) 云服务器通常有其日志文件的特定位置。 我们有在Azure和AWS生成日志文件的指南。 Curtis Chau 立即与工程团队聊天 技术作家 Curtis Chau 拥有卡尔顿大学的计算机科学学士学位,专注于前端开发,精通 Node.js、TypeScript、JavaScript 和 React。他热衷于打造直观且美观的用户界面,喜欢使用现代框架并创建结构良好、视觉吸引力强的手册。除了开发之外,Curtis 对物联网 (IoT) 有浓厚的兴趣,探索将硬件和软件集成的新方法。在空闲时间,他喜欢玩游戏和构建 Discord 机器人,将他对技术的热爱与创造力相结合。 准备开始了吗? Nuget 下载 17,803,474 | 版本: 2026.3 刚刚发布 免费试用 免费 NuGet 下载 总下载量:17,803,474 查看许可证 还在滚动吗? 想快速获得证据? PM > Install-Package IronPdf 运行示例看着你的HTML代码变成PDF文件。 免费 NuGet 下载 总下载量:17,803,474 查看许可证