PDF4 min

How to Flatten a PDF Form So It Can't Be Edited

Flattening bakes form fields, signatures, and annotations into the page so nobody can change them downstream. Here's how to do it locally.

Flattening runs locally via Zro7 Flatten PDF. Signed contracts and filled forms never leave your browser.

To flatten a PDF form or annotated document, use Zro7 Flatten PDF. It renders every AcroForm field, XFA widget, sticky note, highlight, and signature into the page content stream, then removes the interactive layer. The resulting PDF looks identical but nobody — not even Acrobat — can change the values.

Why flatten?

  • Lock a signed contract — prevent counter-party edits after signature.
  • Preserve a filled form — some viewers reset fields; flattening freezes them.
  • Ensure consistent printing — form widgets render differently across viewers; flattened content doesn't.
  • Strip metadata trails — form field names, tab orders, and JavaScript actions are removed.

How Flatten PDF works

  1. Parse the AcroForm/annotation dictionaries and their appearance streams.
  2. Draw each appearance onto the page's content stream at the widget's position.
  3. Delete the interactive objects and rewrite the page tree.
  4. Emit a fresh, view-only PDF.

Steps

  1. Open Flatten PDF.
  2. Drop the filled or signed PDF.
  3. Click Flatten.
  4. Download — try to edit a field in Acrobat to confirm it's now baked in.

Frequently asked questions

Does flattening invalidate digital signatures?

It converts the visible signature appearance into static graphics. The cryptographic signature dictionary is removed, so the file is no longer verifiable as signed — flatten only when you want a print-ready archival copy, not for legal chain-of-custody.

Can I un-flatten?

No. Flattening is destructive by design — that's the whole point.

Does it also flatten annotations like highlights and comments?

Yes. Every annotation with a visible appearance is baked in and the interactive layer is removed.

Will the file get larger or smaller?

Usually slightly smaller — you lose the field metadata but gain a few page operators. For heavily annotated PDFs the savings can be dramatic.

Does this happen on a server?

No. Flatten PDF runs entirely in your browser via WebAssembly.

Related posts

← Back to blog