What flattening a PDF does, and when you should do it

Flattening a PDF takes something interactive on top of a page, usually filled-in form fields, and draws it into the page itself as ordinary text and graphics. The values look the same, but they are no longer fields anyone can click and change. The PDF flatten tool does this for forms, and this guide explains what it changes, what it leaves alone, and the one thing it is often mistaken for.

What flattening means

A PDF page has two layers that behave differently. The page content is the fixed drawing: text, lines and images. On top sit annotations, separate objects attached to the page: form field widgets, comments, highlights, stamps and links. Each annotation carries its own appearance, a small drawing of how it should look. Flattening copies that appearance into the page content and removes the interactive object. The word is used loosely, so it helps to know which kind is meant:

  • Form flattening bakes field values into the page, which is what the flatten tool does.
  • Annotation flattening burns comments and stamps into the page the same way.
  • Transparency flattening is a print-production step that merges overlapping transparent objects, unrelated to forms.
  • Printing to PDF or rasterising flattens everything, often turning text into images.

Flattening a form

When you drop in a filled form, the tool counts the fields by kind (text, checkbox, choice) and how many are filled in. On flattening, it first regenerates each field's appearance from its current value, so what gets baked in matches the data rather than a stale picture, then draws every field into its page and removes the form. Afterwards it re-opens the result and confirms how many editable fields remain, which should be none. If the file has no fields, it says so: a PDF that looks like a form may already be flat, or be a scan.

Everything is flattened in the state it is in. A checkbox left unticked becomes an empty box, a dropdown keeps only the visible choice, and a typo becomes permanent, so review every field before you flatten.

Reasons to flatten

  • Consistent display. Form values are drawn by the viewer, and some viewers, especially on phones and in email previews, show a filled form as empty. Flattened values are part of the page and display everywhere.
  • Preventing casual edits. A recipient cannot click into a field and change an amount or a date.
  • Merging and printing. Page-copying tools handle flat pages cleanly, while live fields can lose their behaviour, as How to merge PDF files into one, and what to check first explains.
  • Submission rules. Some portals ask for flattened files so that nothing changes after upload.

What flattening is not

Flattening is not security. The values become ordinary text, which is still selectable and can be edited by anyone with a PDF editor, just with more effort. It is also not redaction. Flattening a black box drawn over a name does not delete the name underneath; the text is still in the file and can be copied out. For that, use the redaction tool, which turns pages into images so covered content is genuinely gone, and read How to redact a PDF so the text is actually gone.

Flattening also breaks certificate-based digital signatures. Such a signature is valid only for the exact bytes that were signed, so flattening afterwards leaves the drawing of the signature but invalidates it. Flatten first, then sign. Finally, the flatten tool handles form fields only. Comments and sticky notes are separate annotations and are left as they are; remove annotations deletes them if you want a clean copy.

How to flatten safely

Keep an unflattened copy, because flattening cannot be undone and you may need to correct a value later. If the recipient will process the data automatically, for example importing answers into a system, ask whether they want the live form instead, because flattened values are just text on a page. Fill the form with the form filler, which can also flatten as it saves, then check the flattened file in a second viewer before sending. Password-protected forms must be unlocked before they can be flattened. Older XFA forms, an Adobe format deprecated in PDF 2.0, are not supported, and their XFA data is discarded. Everything happens on your device.

Sources and further reading

The claims in this guide rest on these references, which were checked when the guide was last updated. Spotted an error? The contact page says how to report it.

  1. ISO 32000-1:2008, PDF 1.7 โ€” public copy published by Adobe (annotations and interactive forms)
  2. PDF โ€” Wikipedia (interactive elements and annotations)

Try the tool

Frequently asked questions

What does it mean to flatten a PDF?

It draws interactive elements such as filled form fields into the page as ordinary content and removes the fields, so the values can no longer be edited by clicking.

Does flattening a PDF make it secure?

No. The text is still in the file and can be copied or edited with a PDF editor. Use proper redaction to remove sensitive content.

Can I unflatten a PDF?

No. The fields are removed, so keep an unflattened copy if you might need to change values later.

Does flattening affect digital signatures?

Yes. Flattening after signing invalidates a certificate-based signature, so flatten first and sign last.