What flattening a PDF does, and what it never protected
By the getPDF team · Published 11 October 2026
The short answer
Flattening draws a PDF’s form fields, highlights, notes and stamps into the page itself, so nothing stays clickable or fillable and the file looks the same in every viewer. It protects against accidental edits and against a recipient casually changing your answers. It does not encrypt anything, it does not remove text hidden under boxes, and it does not prove the document is unchanged: that takes a password, redaction and a certificate signature.
Flatten a PDF
Try it here, nothing is uploaded
Drop the file above and choose Flatten. It runs on your device, so nothing is uploaded, and you get a copy with “-flat” in its name; your original stays as it was. In the editor, the save menu offers the same as Save flattened PDF, next to Save PDF, which keeps fields editable.
What flattening does to the file
A filled PDF form is 2 things on top of each other: the printed page, and a layer of interactive objects (fields, and annotations such as highlights and notes) that a viewer draws on top and lets you change. Flattening asks the engine to draw that layer into the page the way it looks right now, then removes the interactive objects and the form itself.
We flattened an invented application form: a name field filled with “Jane Cooper”, a ticked checkbox, a country dropdown set to “Austria”, a highlight over the heading, a sticky note saying “Check clause 4 before sending”, and a black rectangle drawn over the word “Country”. Flatten reported “Flattened 5 fields and annotations on 1 page into page content” in under 0.1 seconds. What changed:
- Fields and annotations: 5 before, 0 after. Inspect now says “Form: no form”.
- The filled values became page text. Before, “Jane Cooper” and “Austria” were field values: select-all on the page did not include them. After, select-all copies “Jane Cooper Austria” with the rest of the page.
- The highlight and the note icon are drawn on the page; the note’s words are gone. Flatten removes the note itself along with anything nothing points at any more, so “Check clause 4 before sending” was nowhere in the flattened file’s bytes (we decompressed and searched all of them). Only the icon is left, so delete the note in the editor first if even that must not show.
- The word under the black box was still there. The box was a drawing on the page, not a field, so flattening did nothing to it, and “Country” copied out from under it.
- In getPDF’s editor, the flattened values are 1 grouped object. You can move or delete it as a block, but not retype the name inside it. Make a PDF editable covers what to do with a flattened form you need to change.
What it protects against, and what it does not
8 things people hope flattening prevents, tested against what it does:
| Threat | Does flattening help? | Why |
|---|---|---|
| You or a recipient changes a filled value by accident | Yes | There are no fields left to click into |
| A viewer shows your filled form empty or in another style | Yes | The values are drawn once, the same in every viewer and on paper |
| A recipient re-fills or unticks your answers in a viewer | Mostly | A viewer cannot; an editor can still cover or delete the drawn values |
| Someone copies your filled answers out | No | The values become ordinary page text, easier to copy than before |
| Text under a black or white box | No | The box hides it; the text is still there and copies out |
| Comments you meant to get rid of | Mostly | A note’s words leave the file; its icon stays drawn on the page |
| Your signature lifted onto another document | No | A screenshot or a crop copies a picture of it either way |
| Proving the document was not changed after signing | No | That takes a certificate-based digital signature, and flattening breaks one |
And 1 more that is not on the list because flattening never touched it: who can open the file. A flattened PDF is as readable as before. To keep strangers out, set a password to open with Protect PDF, which encrypts the file with AES-256; the privacy and protection guide explains the 2 kinds of PDF password.
Flattening is not redaction
This is the expensive confusion. People draw a black box over an account number, flatten the file “to make it permanent”, and send it. The box is now part of the page, and so is the account number underneath, which anyone can select, copy or search for.
Redact PDF does the opposite: it takes out the characters, picture pixels, drawings, links and form fields under each box you draw, and then draws the box. After a redaction there is nothing under the box to flatten; getPDF’s redaction already writes a new file without the removed content. White-out versus a real edit shows the difference, measured on our invoice test file.
The signature case
People often flatten “to protect the signature”. What that actually changes depends on how the signature got there:
- A signature placed with getPDF’s editor (drawn, typed or a picture) is written as ordinary page content, lines or a picture, not as an annotation. It is already as flat as it gets; flattening changes nothing about it.
- A signature placed as a stamp annotation by another app becomes page content when flattened, so it can no longer be dragged off as 1 object. A screenshot still copies it.
- A certificate-based digital signature is a different thing: a cryptographic seal over the file’s bytes that shows whether anything changed after signing. Flattening rewrites the file, so it breaks that seal, and getPDF warns you whenever a tool writes a new copy of a signed file.
What makes a signature hold up, and when a drawn one is enough, is covered in the signing and filling guide.
When to flatten
- Before sending a completed form to a person or a portal, so your answers display the same for them and nobody changes them by accident.
- When a recipient sees empty fields that are filled for you: some viewers do not draw fields well; flattened values are page content, which every viewer draws.
- Before printing from an app that prints fields badly.
- Before archiving a filled form, so it reads the same in 10 years without relying on form support.
And when not to: when the recipient must fill in more fields, when the file carries a digital signature that must stay valid, and when you have not kept an unflattened copy. Flattening cannot be undone.
What flattening does not do in getPDF
Flatten PDF handles AcroForm fields, the common kind, and all the usual annotations. It does not flatten XFA forms, the older Adobe-only format some government forms use: it warns when it meets one and suggests filling it and printing it to PDF in Adobe Reader instead, and Inspect shows those as “Form: XFA (not editable here)”. It does not remove attachments, hidden layers or document properties; hidden pages and attachments covers those. And it does not make content unreadable, which is the job of a password for the whole file and of redaction for parts of it.
Questions
Can a flattened PDF be edited?
Not as a form: the fields are gone. But the page is still a page. In our test the flattened values became 1 grouped object that any editor can move, delete or cover with new text. Flattening stops accidents and casual changes, not someone who wants to change the file.
Is a flattened PDF safe to send?
Safer against accidental changes and viewers that draw fields differently. Not against reading: nothing is encrypted, and the filled values become ordinary page text that copies out. If the content is confidential, add a password with Protect PDF.
Does flattening remove what is under a black box?
No. We drew a black box over a word and flattened the file; the word still copied out from under the box. Removing content is redaction's job.
Can I undo flattening?
No. The fields are drawn into the page and the form is removed. Keep the unflattened original; in getPDF's editor, Save PDF keeps fields editable and Save flattened PDF makes the flat copy.
Does flattening break a digital signature?
Yes. Any tool that writes a new copy of a digitally signed file ends the signature's validity, flattening included, and getPDF says so when a tool writes that new copy.
The tools for this job
Keep reading
- Restrict PDF editing and printing, and know what it really stopsSet owner-password permissions to discourage editing, printing and copying a PDF, free in your browser.
- Redact a PDF properly: remove the text, never just cover itA black rectangle hides nothing: the text underneath still copies out.
- Clean a PDF before publishing it: the 7-step pass for hidden leftoversMetadata, comments, bookmarks, attachments, old form data, earlier versions: the 7-step pass that catches what a visual check misses before a PDF goes public.
- Sign and fill a PDF, free and on your deviceSign and fill any PDF free: draw, type or upload a signature, fill every field type, flatten on save.
- PDF privacy and protection: the complete guideWhat a PDF password really protects, how true redaction works, what metadata leaks, and how to send files safely.
- Make a PDF editable: find out which of 4 blockers you haveA PDF refuses edits because it is a scan, locked, flattened or drawn as outlines.