IronPDF 開始使用 使用 IronPdfEngine How to Use IronPdfEngine Curtis Chau 更新日期:6月 9, 2025 Download IronPDF pip 下載 Start Free Trial Copy for LLMs Copy for LLMs Copy page as Markdown for LLMs Open in ChatGPT Ask ChatGPT about this page Open in Gemini Ask Gemini about this page Open in Grok Ask Grok about this page Open in Perplexity Ask Perplexity about this page Share Share on Facebook Share on X (Twitter) Share on LinkedIn Copy URL Email article This article was translated from English: Does it need improvement? Translated View the article in English IronPdfEngine 是經過精心設計的 gRPC 伺服器,負責監督各種 IronPDF 任務,包括 PDF 文件的創建、編輯和閱讀。 class="hsg-featured-snippet"> 如何以遠程伺服器的方式使用 IronPdfEngine 安裝 Python 庫以使用 IronPdfEngine。 從 PyPi 安裝 IronPdf 套件。 利用 IronPdfConnectionConfiguration 類別配置連接設置。 使用 IronPdfEngine 使用類似 Chrome 的渲染器將 HTML 渲染為 PDF。 開始使用 IronPDF 立即開始在您的項目中使用 IronPDF 並免費試用。 第一步: 免費啟動 IronPDF for Python 和 IronPdfEngine Python 版的 IronPDF 不需要 IronPdfEngine 即可運行。 IronPdfEngine 只是使用 IronPdf 的可選方式。 默認情況下,Python 版的 IronPDF 不會使用 IronPdfEngine。 請注意注意:Python 版的 IronPDF 各版本需要特定版本的 IronPdfEngine。不支持跨版本使用。 對於 Python 版的 IronPdf,所需的 IronPdfEngine 版本將始終匹配。 例如,IronPdf 2024.2.2 將使用 IronPdfEngine 2024.2.2。 使用遠程 IronPdfEngine 的 Python 版 IronPDF 假設 IronPdfEngine 遠程運行於 123.456.7.8:33350。 請注意注意:要遠程運行 IronPdfEngine,請參閱 "如何下載並運行 IronPdfEngine。 使用 pip 安裝 IronPdf 使用以下命令來安裝 IronPdf: pip install ironpdf 安裝 IronPdf 後,您需要告知 IronPdf IronPdfEngine 的位置。 確保地址可訪問,且未被防火牆攔截。 使用 IronPdfConnectionConfiguration 類別配置連接設置。 將此配置代碼添加到應用程式的開始部分,或在調用任何 IronPdf 方法之前。 # Import necessary modules from ironpdf import Installation, IronPdf # Configure the connection settings to connect to the remote IronPdfEngine Installation.ConnectToIronPdfHost( IronPdf.GrpcLayer.IronPdfConnectionConfiguration.RemoteServer("123.456.7.8:33350") ) # Import necessary modules from ironpdf import Installation, IronPdf # Configure the connection settings to connect to the remote IronPdfEngine Installation.ConnectToIronPdfHost( IronPdf.GrpcLayer.IronPdfConnectionConfiguration.RemoteServer("123.456.7.8:33350") ) PYTHON 就是這麼簡單! 此後,您的應用程式將連接到遠程的 IronPdfEngine! 常見問題解答 如何將 IronPdfEngine 用作遠端伺服器? 要將 IronPdfEngine 用作遠端伺服器,首先需要從 PyPI 安裝 Python 程式庫和 IronPdf 套件。然後,使用IronPdfConnectionConfiguration類別配置連接,並使用 IronPdfEngine 提供的類似 Chrome 的渲染器將 HTML 渲染為 PDF。 在Python中執行PDF任務是否必須使用IronPdfEngine? 不,在 Python 中執行 PDF 任務並不需要 IronPdfEngine。 Python 版 IronPDF 可以獨立運行,無需 IronPdfEngine,IronPdfEngine 是可選的,用於遠端操作。 如何在Python中安裝IronPdf? 您可以使用 pip 在 Python 中安裝 IronPdf,指令如下: pip install ironpdf 。 連線到遠端 IronPdfEngine 需要進行哪些配置? 若要連線至遠端 IronPdfEngine,請使用IronPdfConnectionConfiguration.RemoteServer方法指定伺服器位址,確保其可存取且未被防火牆封鎖。 IronPDF 和 IronPdfEngine 的不同版本可以一起使用嗎? 不,不支援使用不同版本的 IronPDF 和 IronPdfEngine。每個 Python 版 IronPDF 都需要特定版本的 IronPdfEngine 與之相符。 如何確保 IronPDF for Python 和 IronPdfEngine 之間的相容性? 為確保相容性,請使用相同版本的 IronPDF for Python 和 IronPdfEngine。例如,IronPdf 2024.2.2 應與 IronPdfEngine 2024.2.2 一起使用。 IronPDF for Python 在處理遠端連線時預設的行為是什麼? 預設情況下,Python 版 IronPDF 不會連線到 IronPdfEngine。除非配置為使用 IronPdfEngine 連接到遠端伺服器,否則它會獨立運作。 如何遠端使用 IronPdfEngine 將 HTML 渲染成 PDF? 在使用IronPdfConnectionConfiguration類別建立連線後,您可以使用 IronPdfEngine 的類似 Chrome 的渲染器遠端將 HTML 渲染為 PDF。 在哪裡可以找到有關設定遠端 IronPdfEngine 的更多資訊? 有關遠端運行 IronPdfEngine 的詳細說明,請參閱「如何拉取和運行 IronPdfEngine」指南。 IronPdfEngine(或 IronPDF)是否支援 .NET 10? 是的。 IronPDF 的 .NET 程式庫與 .NET 10 完全相容,支援 .NET 10、9、8 及更早版本。這確保了使用 .NET 10 的開發人員可以像在先前的 .NET 版本中一樣無縫地使用 IronPDF,包括所有 HTML 到 PDF 的渲染、遠端伺服器連接、版本匹配和引擎使用。 Curtis Chau 立即與工程團隊聊天 技術作家 Curtis Chau 擁有卡爾頓大學計算機科學學士學位,專注於前端開發,擅長於 Node.js、TypeScript、JavaScript 和 React。Curtis 熱衷於創建直觀且美觀的用戶界面,喜歡使用現代框架並打造結構良好、視覺吸引人的手冊。除了開發之外,Curtis 對物聯網 (IoT) 有著濃厚的興趣,探索將硬體和軟體結合的創新方式。在閒暇時間,他喜愛遊戲並構建 Discord 機器人,結合科技與創意的樂趣。 準備好開始了嗎? 版本: 2025.9 剛剛發布 免費 Pip 安裝 查看許可證