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,090版本:2026.9剛剛發布

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 IronPDF
預約您的免費
現場演示
Booking Badge

全球數百萬工程師信賴

Iron Software的客戶標誌
獲得非義務性諮詢
完成下列表單或發郵件到sales@ironsoftware.com
您的資訊將始終保密。
全球數百萬工程師信賴
Iron Software的客戶標誌
立即獲取您的30天試用金鑰
無需信用卡或帳戶建立