IRONSOFTWAREHOME
展平 PDFs
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
展平 PDFs

展平 PDFs

true将所有交互式表单字段、注释和分层内容合并到打印输出中。 这可确保填写的值、数字签名和嵌入的图像在纸质页面上的显示效果与屏幕上完全一致。

在打印包含重叠层的已填写表单或文档时,平铺功能尤为实用。 否则,某些打印机可能会跳过交互元素或将其渲染错误。 扁平化操作在数据到达打印后台处理程序之前于内存中进行,因此原始 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 天试用密钥
无需信用卡或创建账户