Guide
Flattening a PDF - What It Locks In, and What It Doesn't Hide
By Happy Turtle Tech · Published · Updated
Part of the topic Clean a PDF Before You Share It
"Please send a flattened PDF" is one of those requests that sounds technical and usually arrives without explanation. It comes from HR departments, court e-filing systems, print shops and university admissions portals. This guide explains what a PDF has in it that can be flattened, what flattening does to each part, when it is the right thing to do, and the one thing people most often assume it does but it does not: hide anything.
Two layers on top of the page
A PDF page has its own content - the text, lines and images drawn when the document was made. On top of that, a PDF can carry objects that are not part of the page at all. Viewers draw them over the page, and they can be changed independently of it. Two kinds matter here.
Form fields are the boxes you type answers into, the check boxes you tick and the drop-down lists you pick from. The answer is stored in the field, separately from the page, and the viewer draws it in the box. That is why you can change an answer, clear a form, or have a viewer fill in a total for you.
Comments and markup are what reviewers add: highlights, underlines and strike-throughs, drawn shapes and arrows, freehand pen marks, stamps such as "Approved", text boxes typed onto the page, and sticky notes. Each is a separate object with its own author, date and often a comment. Viewers list them in a comments panel and let you hide, reply to or delete them. The guide to annotating a PDF covers how they work in more detail.
What flattening does
Flattening takes what each of those objects looks like and draws it into the page itself, then removes the object. The page looks exactly the same afterwards. The difference is underneath: there is no form left to fill in and no comment left to edit. The answer "Jane Example" is now drawn on the page the same way the printed label beside it is.
Forms and comments can be flattened separately. Flattening only the form locks the answers while leaving a reviewer's comments live for the next reader. Flattening only the comments turns an approved markup into part of the record while leaving the form fillable. A form that is flat to begin with can be made fillable before anyone fills it in; see making a flat PDF fillable.
When to flatten
- Upload portals and document systems that read only what is drawn on the page. A filled-in fillable PDF can arrive looking blank because the system ignored the fields. Flattened, every system sees the answers.
- Locking answers before you send. A fillable form can be changed by whoever receives it, deliberately or by accident. Changing a flattened one takes a PDF editor rather than a click in a form field.
- Printing and archiving. Some printers, older viewers and archiving tools draw form fields and comments inconsistently, or not at all. Flat content prints the same everywhere.
- Making markup final. An approval stamp or a set of agreed corrections becomes part of the page rather than something the next reader can hide with one click.
When not to
If the person you are sending the form to will process it electronically - reading the fields into a database, or totalling them - flattening throws away exactly what their system reads. If someone still needs to fill in part of the form, flattening stops them. And if a reviewer's comments are part of a conversation that is still going, flattening ends it: the marks stay, but their comment text does not. The guide to filling in PDF forms goes into the portal question in more depth.
What is lost
- The ability to edit the form or the comments. Keep the original if you might need it.
- The text of a comment attached to a flattened highlight or shape. The yellow band stays on the page; the note someone wrote about it does not.
- A digital signature. Flattening rewrites the file, so a cryptographic signature on it no longer validates. Flatten before signing, not after.
Flattening is not redaction
This is the misunderstanding that matters most. Flattening changes how content is stored, not whether it can be read. A flattened answer is ordinary page text: anyone can select it, copy it, search for it, or pull it out with a text-extraction tool, exactly as they could before. Flattening a black rectangle drawn over a sentence does not remove the sentence either - the text is still underneath, and copying the area reveals it.
To make information unreadable, it has to be removed from the file, not covered or flattened. The guide to redaction done right explains how, and the redact tool does it.
A related trap: some PDF editors let you mark text "for redaction" and apply it later. Until it is applied, the mark is only an overlay, and the text is untouched. A flattening tool that drew that overlay into the page would produce a file that looks redacted and is not. HerePDF never flattens a pending redaction; it leaves it as it is and tells you.
What we measured: flattening real forms and comments
We ran HerePDF's flatten on real files from two public collections (a 2009 set of US government documents and a 2021 web crawl): the 86 forms that could be filled, each given an answer in every field first, and the 115 files that carry comments.
Flattened forms left no live field behind, and the answers became page text. A form entry remained in 0 and a live widget in 0 of the 86 saved files, and 2,902 of the 2,925 typed answers could be found as ordinary text on their page. That is the reason flattening is not redaction: the answer is still there to select, search and copy. In 1 of the 86 forms a few field dictionaries remained, named only by the file's tag tree, with their names and no values.
The measurement found a gap, now fixed. Some forms carry widgets that no field in the form owns. The first run left them as live boxes, value and all, in 3 of the crawl's 54 forms; flatten now draws and removes them like any other. For comparison, the flatten built into the PDF library HerePDF uses threw an error on 4 of 140 forms, which is why HerePDF has its own; HerePDF's threw on 0.
Comments are mostly drawn, and four things are deliberately not. Of 115 files with comments, flatten drew 993 marks into the page and kept 49 sticky notes as notes. It dropped the comment text attached to 161 flattened marks, in 2 files, and left 1,199 marks as live comments because they had no appearance to draw, in 9 files. And 6 marks were left for redaction in 1 of the files: text someone meant to remove, still in the file, which flatten does not touch and says so.
The limits: public documents, test strings for the answers, and only forms HerePDF can open. The file names are not published, only counts; the data and the method are there to check against.
Sticky notes
A sticky note is a comment whose words appear only when it is opened. Drawn into the page, it becomes a small speech-bubble icon that cannot be opened, with the words gone - the worst of both. HerePDF keeps sticky notes as notes when it flattens, and says how many it kept. If you want them gone, delete them in your PDF reader first.
Flattening without uploading
The documents people flatten are usually completed forms: tax forms, applications, medical questionnaires, contracts. Those are exactly the files that should not be uploaded to a stranger's server to change how they are stored. The flatten tool does it in your browser: choose form fields, comments and markup, or both, and the result downloads straight back to you. The document's title, author and other properties are left as they are - the metadata tool is for those. To fill a form first, use Fill PDF Form, which can also flatten as it saves.
A quick checklist
- Check whether the recipient wants the fields - if their system reads them, don't flatten.
- Keep an unflattened copy.
- Read the comments you are about to flatten; their text will be gone.
- Never rely on flattening to hide anything - redact instead.
- Flatten before a document is digitally signed, not after.
Frequently asked questions
Can a flattened PDF be un-flattened?
Not in any useful way. Once answers and marks are drawn into the page they are ordinary page content, like the printed text around them; there is no form or comment left to restore. Keep the original file if you might need to change an answer later.
Is a flattened PDF safe to send if it contains private information?
No more than the original. Flattening changes how the content is stored, not who can read it: flattened answers can be selected, copied and searched. To remove information, redact it.
Why does a portal reject my fillable PDF?
Some upload portals and document systems only read what is drawn on the page and ignore form fields, so a filled-in fillable PDF can arrive looking blank. Flattening draws the answers into the page, where every system sees them.