如何使用IronPdfEngine

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

IronPdfEngine 是一个 gRPC 服务器,专门设计用来管理 IronPDF 的多种任务,包括创建、编辑和阅读 PDF 文档。

开始使用IronPDF

立即在您的项目中开始使用IronPDF,并享受免费试用。

第一步:
green arrow pointer


IronPdf Python 和 IronPdfEngine

IronPdf Python不需要IronPdfEngine来运行。 IronPdfEngine 只是使用 IronPdf 的一个可选方式。 默认情况下,IronPdf for Python 将不会使用 IronPdfEngine。

请注意
每个版本的IronPdf for Python都需要特定版本的IronPdfEngine。不支持跨版本。] 对于IronPDF for Python,所需的IronPdfEngine版本将始终匹配。 例如,IronPdf 2024.2.2 将使用 IronPdfEngine 2024.2.2

IronPdf Python 与远程 IronPdfEngine

假设IronPdfEngine在123.456.7.8:33350远程运行

[{i:(若要远程运行IronPdfEngine,请参考 "如何提取和运行IronPdfEngine”。

使用 pip 安装 IronPdf:

pip install ironpdf
pip install ironpdf
SHELL

安装IronPdf后,你只需告诉IronPdf IronPdfEngine的位置(请确保该地址可访问,未被防火墙阻挡)。 使用 IronPdfConnectionConfiguration 类来配置连接设置。 在您的应用程序的初始阶段(或者在调用任何IronPDF方法之前)添加此代码。

Installation.ConnectToIronPdfHost(
    IronPdf.GrpcLayer.IronPdfConnectionConfiguration.RemoteServer("123.456.7.8:33350"));
py
PYTHON

就这么简单! 之后,您的应用程序将连接到远程IronPdfEngine!