如何使用IronPdfEngine

查克尼特·宾
查克尼特·宾
2024年二月25日
更新 2024年十二月10日
分享:
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

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

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

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

查克尼特·宾
软件工程师
Chaknith 负责 IronXL 和 IronBarcode 的工作。他在 C# 和 .NET 方面拥有深厚的专业知识,帮助改进软件并支持客户。他从用户互动中获得的洞察力,有助于提升产品、文档和整体体验。