IRONSOFTWAREHOME
Flatten 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
Flatten PDFs

Flatten PDFs

Setting Flatten to true on the PrintSettings object merges all interactive form fields, annotations, and layered content into the printed output. This helps ensure filled-in values and visual annotations render as shown on screen.

Flattening is especially useful when printing completed forms or documents that contain overlapping layers. Without it, some printers may skip interactive elements or render them incorrectly. The source PDF file itself is not modified.

Read the Full Guide on Flattening PDFs Before Printing

Ready to Get Started?

Nuget Downloads 46,090Version:2026.9just released

Key in blue circle

Get your free 30-day Trial Key instantly.

Your trial license will be sent to your email address

No limitations. 100% unlocked. No credit card.

bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
Book your free Live Demo
Booking Badge

Trusted by Millions of Engineers Worldwide

Iron Software's customer logos
Get Your No-Obligation Consult
Complete the form below or email sales@ironsoftware.com
Your details will always be kept confidential.
Trusted by Millions of Engineers Worldwide
Iron Software's customer logos
Get your free 30-day Trial Key instantly.
No credit card or account creation required