← All postsHow-to

Flatten PDF: locking a filled form so nobody can change it

Flattening merges form fields and annotations into the page itself. It is the step between a document being filled and a document being final — and skipping it is why people receive PDFs they can still edit.

How-toF

Flattening a PDF merges its interactive layers — form fields, comments, stamps, signature appearances — into the static page content. What was an editable text box becomes text on the page. Nothing looks different; everything becomes fixed.

The reason to care is that a filled form is not a finished document. Send an unflattened one and the recipient can open the fields, change the numbers, and forward it looking exactly as you sent it. For a quote, an application or anything that records what somebody agreed to, that is a real problem rather than a theoretical one.

When to flatten

  • Before sending a filled form to someone outside your business, so the values cannot be altered.
  • Before archiving. Interactive fields are the part most likely to render differently in ten years, or not at all.
  • Before printing at a print shop, where form fields and annotations behave unpredictably in other software.
  • When a file has become huge for no obvious reason — flattening often removes a surprising amount of layered overhead.
  • Not while a document is still being worked on. Flattening is irreversible in any practical sense, which is the whole point.

Flattening is not the same as securing. It stops casual editing of form values and does nothing against somebody with a proper PDF editor who wants to alter the page — the text is still text. If the requirement is that a document be verifiably unchanged, that is a digital signature, which is a different mechanism doing a different job. Confusing the two is common and occasionally expensive.

What actually happens to the file

  1. Form field values are drawn onto the page and the fields are removed. The information stays visible; the input mechanism disappears.
  2. Annotations and comments become part of the page, which is why reviewers lose the ability to reply to them afterwards.
  3. Signature appearances flatten into the page image — and if there was a cryptographic signature attached, flattening generally invalidates it. Sign after flattening, not before.
  4. Layers merge, which is where much of the file-size reduction comes from.
  5. The result is a normal PDF that opens everywhere, including in the older readers that mishandle interactive forms.

The common mistakes

  • Flattening the master. Keep the fillable original; flatten a copy. Recreating form fields is tedious work you will not want to repeat.
  • Flattening before signing, then wondering why the signature is gone — or after signing, then wondering why it no longer validates. The order matters and depends on the signature type.
  • Assuming it prevents editing. It prevents field editing, not document editing.
  • Printing to PDF as a substitute. It works and it re-rasterises text in some tools, which destroys the ability to select or search the content. Flattening properly keeps the text as text.

Where it fits

Ettex PDF handles filling and signing, and a completed form is the point at which flattening belongs in the sequence. The editing side is covered in edit pdf document online, and the signature question — a genuinely different mechanism — in e signature software.

Being clear about the limits: there is no batch flattening of hundreds of files, no command-line tool and no redaction. Flattening also does not remove information hidden behind other content — if something was covered rather than deleted, it is still in the file, and that is a redaction problem with its own tools and its own risks.

Frequently asked

What does flattening a PDF do?

It merges form fields, annotations and layers into the static page content. Values stay visible but stop being editable fields.

Does flattening make a PDF secure?

No. It stops casual editing of form values. Anyone with a proper PDF editor can still alter the page. Verifiable integrity requires a digital signature instead.

Can you unflatten a PDF?

Not in any practical sense. Keep the fillable original and flatten a copy — recreating form fields afterwards is significant work.

Should you flatten before or after signing?

It depends on the signature type: flattening generally invalidates a cryptographic signature, so sign after flattening. A drawn signature image flattens harmlessly.

IP
Written by Ivan P.

Part of the Ettex team — writing about product, engineering and the future of work.

More posts
Get the best of the Ettex blogProduct news, guides and tips — straight to your inbox, no spam.