如何使用IronPdfEngine
IronPdfEngine 是一个 gRPC 服务器,专门设计用来管理 IronPDF 的多种任务,包括创建、编辑和阅读 PDF 文档。
如何将 IronPdfEngine 用作远程服务器
- 安装 Python 库以使用 IronPdfEngine
- 从 PyPi 安装 IronPdf 软件包
- 利用 IronPdfConnectionConfiguration 类配置连接设置
- 使用 IronPdfEngine 将 HTML 渲染为 PDF,其渲染器与 Chrome 浏览器相同
开始使用IronPDF
立即在您的项目中开始使用IronPDF,并享受免费试用。
IronPdf Python 和 IronPdfEngine
IronPdf Python不需要IronPdfEngine来运行。 IronPdfEngine 只是使用 IronPdf 的一个可选方式。 默认情况下,IronPdf for Python 将不会使用 IronPdfEngine。
请注意
IronPdf Python 与远程 IronPdfEngine
假设IronPdfEngine在123.456.7.8:33350
远程运行
[{i:(若要远程运行IronPdfEngine,请参考 "如何提取和运行IronPdfEngine”。
使用 pip 安装 IronPdf:
pip install ironpdf
安装IronPdf后,你只需告诉IronPdf IronPdfEngine的位置(请确保该地址可访问,未被防火墙阻挡)。 使用 IronPdfConnectionConfiguration 类来配置连接设置。 在您的应用程序的初始阶段(或者在调用任何IronPDF方法之前)添加此代码。
Installation.ConnectToIronPdfHost(
IronPdf.GrpcLayer.IronPdfConnectionConfiguration.RemoteServer("123.456.7.8:33350"));
就这么简单! 之后,您的应用程序将连接到远程IronPdfEngine!