在 Windows 上使用 IronPDF for .NET
IronPDF 支援 Windows 10、11 及 Windows Server,適用於 .NET 8、7、6、Core、.NET Standard 及 .NET Framework。
關於 Windows Server 的重要注意事項
我們同時支援 Windows Server 2022 和 2016 的"桌面體驗"及"核心"版本,而"桌面體驗"版本僅支援 2019 和 2012。
Windows Server 2022 與 2016
- 具備使用者介面("桌面體驗")的 Windows Server 2022 及 2016
- Windows Server 2022 與 2016 僅支援命令列介面("Core")。
Windows Server 2019 與 2012
- 具備使用者介面("桌面體驗")的 Windows Server 2019 與 2012
- Windows Server 2019 與 2012 僅支援命令列介面("Core")。
IronPDF 版本 2023.3.2 至 2024.2.2 不相容於 Windows Server 2012。
我們正致力於支援 Windows Server 的 Core 和 Nano 版本。 目前並無任何作業系統架構問題阻礙我們提供支援。 這很可能是因為 Chromium(Chrome 渲染器)需要媒體/圖形 DLL 來將 HTML 渲染為 PDF,而這些 DLL 雖然存在於 Windows Server 的"桌面"版本中,但在精簡版中卻缺失。
此外,由於 Windows Nano Server 是 Windows Server Core 的精簡版本,一旦我們全面支援 Windows Server Core,我們將考慮支援 Windows Nano Server。
.NET 6 中的 Windows Nano Server / Server Core 不支援 System.Drawing
更多詳細資訊
若您的 Windows 版本不受支援,請考慮使用 IronPDF 的引擎模式
Native 與 Engine 之間有何區別?
IronPDF 具備一些對效能要求較高的功能,您可選擇將其遠端執行。 雖然 IronPDF 無需 IronPdfEngine 即可運行,但將 IronPdfEngine 設定為遠端服務是一種可選方案,藉此可避免在舊版作業系統及行動裝置環境中出現特定平台的 Chrome 相容性問題。
使用 Engine 會如何改變我使用 IronPDF 編寫程式的方式?
這將讓您能夠使用較舊版本的 Windows,例如 Windows Server 2012。
using Engine 配置時,我們建議從 NuGet 安裝 IronPdf.Slim 而非完整的 IronPdf 套件,因為 Engine 會管理 Native 套件中包含的所有額外內容。
# Install the IronPdf.Slim package using Package Manager Console
:InstallCmd Install-Package IronPdf.Slim
# Install the IronPdf.Slim package using Package Manager Console
:InstallCmd Install-Package IronPdf.Slim
安裝 IronPdf.Slim 後,請透過將 IronPDF 指向您的 IronPdfEngine 實例來設定連線設定。 請在應用程式的啟動時(或在呼叫任何 IronPDF 方法之前)加入以下程式碼:
// Configure IronPDF to connect to the remote IronPdfEngine instance
// Replace "123.456.7.8:33350" with the actual remote host and port
Installation.Co/nnectToIronPdfHost(IronPdf.GrpcLayer.IronPdfConnectionConfiguration.RemoteServer("123.456.7.8:33350"));
// Configure IronPDF to connect to the remote IronPdfEngine instance
// Replace "123.456.7.8:33350" with the actual remote host and port
Installation.Co/nnectToIronPdfHost(IronPdf.GrpcLayer.IronPdfConnectionConfiguration.RemoteServer("123.456.7.8:33350"));
' Configure IronPDF to connect to the remote IronPdfEngine instance
' Replace "123.456.7.8:33350" with the actual remote host and port
Installation.ConnectToIronPdfHost(IronPdf.GrpcLayer.IronPdfConnectionConfiguration.RemoteServer("123.456.7.8:33350"))
Windows Server Standard 與 DataCenter
根據 Microsoft 文件《Windows Server 2016 標準版與資料中心版比較》中強調的差異,Windows Server 資料中心版包含 Windows Server 標準版的所有元件,並額外提供儲存增強元件。 IronPDF 亦可在 Windows Server DataCenter Desktop Experience 上運作。
Windows 專用安裝
NuGet
主要的 IronPDF NuGet 套件依賴於 IronPdf.Native.Chrome.Windows,該套件包含適用於 x86 和 x64 架構的 Chrome 二進位檔。
- IronPDF 套件支援 x86 和 x64 Windows 架構。
若針對特定執行環境,可刪除未使用的 /runtimes 資料夾(x86 或 x64)。
DLL 下載
若需離線使用,您可以下載 DLL 檔案並將其加入專案參考。
安裝程式
我們也提供適用於 Windows 的安裝程式。 在 Visual Studio 的"解決方案總覽"中,右鍵點擊"依賴項",然後選擇"新增專案參考"。 接著,點擊"瀏覽"並加入從安裝程式中解壓縮的所有 DLL 檔案。
硬體規格
IronPDF 採用 Chromium 引擎將 HTML 轉換為 PDF。 Chromium 引擎以與 Chrome PRINT 功能相仿的像素級精準度來渲染 PDF 檔案。 硬體規格主要用於運行 Chromium 引擎,該引擎佔用了大部分運算能力。
- 最低需求:1 核心及 1.75 GB 記憶體
- 建議配置:2 核心及 8 GB 記憶體或更高
常見問題
此 PDF 工具相容於哪些 Windows 版本?
IronPDF 支援 Windows 10、11 以及 Windows Server 2022、2016、2019 和 2012(在「桌面體驗」模式下)。然而,Windows Server 2019 和 2012 在「核心」模式下則不被支援。
如何在不支援的 Windows 版本上處理 PDF 任務?
對於未受支援的 Windows 版本,您可以使用 IronPDF 的引擎模式。此模式可讓您遠端處理效能密集型功能,從而繞過特定平台的相容性問題。
運行 IronPDF 是否有特定的硬體需求?
是的,最低系統需求為 1 核心及 1.75 GB 記憶體,而建議規格為 2 核心及 8 GB 記憶體或更高,這是因為 IronPDF 仰賴 Chromium 引擎進行渲染。
IronPDF 可以在離線狀態下使用嗎?
是的,您可以透過下載 DLL 檔案並將其新增為專案的參考,來離線使用 IronPDF。此外,Windows 版亦提供安裝程式以利離線使用。
如何設定 IronPDF 的引擎模式?
若要以引擎模式設定 IronPDF,請從 NuGet 安裝 `IronPdf.Slim` 套件,並使用提供的程式碼將連線設定指向您的 IronPdfEngine 實例,最後連線至遠端主機。
為何可能會與 Windows Nano Server 產生相容性問題?
由於缺少 Chromium 引擎所需的媒體/圖形 DLL,Windows Nano Server 目前不支援 IronPDF。不過,針對 Windows Server Core 的支援功能正在開發中,未來可能會擴展至 Nano Server。
PDF 工具需要哪些 NuGet 套件?
主要的 IronPDF NuGet 套件依賴於 IronPdf.Native.Chrome.Windows,其中包含適用於 x86 和 x64 架構的必要 Chrome 二進位檔。
IronPDF 是如何利用 Chromium 進行渲染的?
IronPDF 採用 Chromium 引擎將 HTML 渲染為 PDF,確保與 Chrome 列印功能相似的像素級精準度。此過程需要相當大的運算能力,因此有硬體規格要求。

