IRONSOFTWAREHOME
將 PDF 檔案扁平化
using IronPrint;

// Flatten the PDF before printing to preserve form fields and annotations
PrintSettings settings = new PrintSettings();
settings.Flatten = true;

Printer.Print("form-document.pdf", settings);
Imports IronPrint

' Flatten the PDF before printing to preserve form fields and annotations
Dim settings As New PrintSettings()
settings.Flatten = True

Printer.Print("form-document.pdf", settings)
NuGet Download
PM > Install-Package IronPrint
將 PDF 檔案扁平化

將 PDF 檔案扁平化

將PrintSettings物件上將所有互動表單字段、註釋和分層內容合併到列印輸出中。 這能保證填寫的值、數位簽名和內嵌圖像在實體頁面上與螢幕上的顯示完全一致。

平面化在列印完成的表單或含有重疊層的文件時特別有用。 沒有這個功能,一些列印機可能會跳過互動元素或錯誤地渲染它們。 平面化操作在資料到達列印排程程式之前發生於記憶體中,因此原始的PDF文件保持不變。

閱讀列印前平面化PDF的完整指南

準備好開始了嗎?

Nuget Downloads 46,787版本:2026.10剛剛發布

Key in blue circle

立即免費取得 30 天試用金鑰。

Your trial license will be sent to your email address

無任何限制。100% 解鎖。無需信用卡。

bullet_checked無需信用卡或建立帳號無任何限制。100% 解鎖。無需信用卡。
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPrint
預約您的免費
現場演示
Booking Badge

全球數百萬工程師信賴

Iron Software的客戶標誌
獲得非義務性諮詢
您的資訊將始終保密。
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
全球數百萬工程師信賴
立即獲取您的30天試用金鑰。
無需信用卡或帳戶建立
C# NuGet PDF程式庫
安裝方法NuGet

版本: 2026.10

PM > Install-Package IronPrint
nuget.org/packages/IronPrint/
  1. 在解決方案資源管理器中,右鍵點擊引用,管理NuGet套件
  2. 選擇瀏覽並搜尋"IronPrint"
  3. 選擇套件並安裝
C# PDF DLL
下載DLL

版本: 2026.10

  1. 下載並解壓IronPrint到比如~/Libs這樣的位置在您的Solution目錄下
  2. 在Visual Studio解決方案資源管理器中,右鍵點擊引用。選擇瀏覽,"IronPrint.dll"

授權從$999