在Windows上使用IronPDF for .NET
IronPDF支援Windows 10、11及Windows Server for .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含有UI("桌面體驗")
- Windows Server 2022和2016僅限命令行("核心")。
Windows Server 2019 & 2012
- Windows Server 2019和2012含有UI("桌面體驗")
- Windows Server 2019和2012僅限命令行("核心")。
IronPDF版本2023.3.2 - 2024.2.2不相容於Windows Server 2012。
我們正在努力支援Windows Server的Core和Nano版本。 操作系統架構並沒有阻礙我們的支援。 這很可能是因為Chromium(Chrome Renderer)渲染HTML為PDF時所需的媒體/圖形DLL缺失於精簡版而存在於"桌面"版本中。
此外,由於Windows Nano Server是Windows Server Core的精簡版,一旦我們全面支援Windows Server Core,我們將考慮支援Windows Nano Server。
Windows Nano Server / Server Core在.NET 6中不支援System.Drawing。 更多詳情
如果您的Windows版本不支援,請考慮使用IronPDF的引擎模式
本地與引擎之間有何不同?
IronPDF 有一些性能密集的功能,您可以選擇遠程運行。 雖然 IronPDF 不需要 IronPdfEngine 運行,但將 IronPdfEngine 配置為遠程服務是一種可選擇的方式,可以避免在舊版操作系統和移動環境中發生與平台相關的 Chrome 相容性問題。
使用引擎如何改變我使用IronPDF的編碼方式?
這將讓您能夠使用較舊版本的Windows,如Windows Server 2012。
在使用引擎配置時,我們建議安裝IronPdf封裝,因為引擎管理本地封裝中包含的所有額外部分。
安裝IronPdf.Slim後,通過指向您的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.ConnectToIronPdfHost(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 DataCenter包含Windows Server Standard的所有組件,並附加了額外的儲存增強組件。 IronPDF也可運行於Windows Server DataCenter桌面體驗。
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引擎以像素完美的準確性渲染PDF,類似於Chrome的列印功能。 硬體規格主要是用於運行Chromium引擎,這需要大部分計算能力。
- 最低:1核心和1.75 GB RAM
- 推薦:2核心和8 GB RAM或以上
常見問題
哪些Windows版本與PDF工具相容?
IronPDF支持Windows 10、11和Windows Server版本2022、2016、2019和2012的桌面體驗模式。然而,Windows Server 2019和2012不支持核心模式。
如何在不支持的Windows版本上處理PDF任務?
對於不支持的Windows版本,您可以使用IronPDF的引擎模式。這可以讓您在遠程處理性能密集的函式,避免平台特定的相容性問題。
在運行IronPDF時是否有特定的硬體要求?
是的,最低要求是1核和1.75 GB的RAM,而建議的配置是2核和8 GB的RAM或更高,因為IronPDF依賴Chromium引擎進行渲染。
IronPDF可以離線使用嗎?
可以,IronPDF可以離線使用,通過下載DLL並將其作為引用新增到您的項目中。還有一個適用於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列印功能一樣的像素級精確度。這個過程需要顯著的計算能力,因此需要硬體規格。
Are there any compatibility issues with specific IronPDF versions on Windows Server?
Yes, versions 2023.3.2 - 2024.2.2 of IronPDF are not compatible with Windows Server 2012.
What are the benefits of using the IronPdf.Slim package?
The IronPdf.Slim package is beneficial for those using IronPDF in Engine mode, as it includes just the essentials, allowing the bulkier functions to be managed by the remote IronPdfEngine.
Curtis Chau擁有Carleton大學的電腦科學學士學位,專精於前端開發,擁有Node.js、TypeScript、JavaScript和React的專業知識。Curtis熱衷於建立直觀且美觀的使用者介面,喜愛使用現代框架並建立結構良好、視覺吸引力的手冊。