What flattening a PDF does
A filled form field, a sticky note, a highlight, a stamp or a signature drawn with a PDF app is not part of the page itself. The PDF format stores each of them as an annotation: a separate object that sits on top of the page, with its own position and its own look, called an appearance. That is why you can still click into a field, drag a stamp or delete a comment.
Flattening draws that appearance into the page content and removes the annotation. Adobe's JavaScript reference for Acrobat describes its own flatten command the same way: it converts annotations to page contents, and afterwards they may have appearances but they are no longer annotations. This tool does the same in your browser. Each appearance is placed over the rectangle the annotation covered, with its transparency, so the page looks as it did. Text inside a field or a text box stays text, so you can still select and search it.
Form fields only, or fields and annotations
| Option | What becomes part of the page | What stays as it is |
|---|---|---|
| Form fields only | Every field with its value: text fields, checkboxes, radio buttons, lists, signature fields | All comments, stamps, drawings and links |
| Fields and annotations | Fields, plus comments, highlights, underlines, stamps, freehand drawings, shapes and text boxes that have their own appearance | Links (unless you untick Keep links clickable), attached files, media, redaction marks that were not applied, annotations without an appearance |
| Flatten as images | Everything visible: each page becomes one picture, as your browser shows it | Links, if you keep them clickable |
The form itself is removed in all three cases, so a flattened form can no longer be filled in. A form that is not finished yet is better filled first with Fill PDF Form, which can also flatten when it saves. Hidden annotations are removed, because they are not shown. Attached files keep their paperclip annotation, because baking only the icon would throw the file away.
Annotations without an appearance
Some apps save comments, shapes or text boxes without an appearance and leave it to the PDF viewer to draw them. The PDF 2.0 standard, ISO 32000-2, asks for an appearance on every annotation except pop-ups, links and projections, and notes that without one the rendered look depends on the app that shows it. Such an annotation has no fixed picture that could be put into the page, so the tool leaves it as it is and tells you how many there are. If those must become part of the page, choose Flatten as images: your browser draws them, and the drawing is saved.
Forms can also ask the viewer to draw the field contents (the NeedAppearances flag). The tool then draws the text and list fields again before flattening, in Helvetica, which covers Latin letters with accents. A field with characters that Helvetica cannot draw, such as letters from other alphabets, keeps the look it already had, and the tool names it.
Keep text or flatten as images
The default method keeps everything as vector content: text stays sharp at any zoom and stays selectable, and the file grows only a little. Flatten as images draws every page at 150, 200 or 300 dpi and stores it as one JPEG picture. That is the strongest way to make a page look the same everywhere, but the text is gone as text: it cannot be selected, searched or copied, screen readers cannot read it, and the file is usually larger. Links can stay clickable on top of the pictures.
What flattening does not do
- It does not hide or remove text. Flattened form values are ordinary page text afterwards, and anyone can copy them. To remove words for good, use Redact PDF. Redaction marks that were placed in another app but not applied are not applied by flattening; the tool tells you when it finds some.
- It is not a lock. Page content can still be changed with a PDF editor. To ask for a password before editing, use Protect PDF on the flattened copy.
- It does not change the document properties. To see or clear the title, author and other metadata, use the PDF Metadata Editor.
- It does not work on encrypted PDFs. If the file has a password or editing restrictions, remove them first with Unlock PDF if you are allowed to.
How to flatten a PDF
- 1Drop your PDF on the box or choose it. The tool lists the form fields and annotations it found, and which ones have no appearance of their own.
- 2Choose Form fields only, or Fields and annotations. Keep links clickable if the PDF has links. Choose Flatten as images only if the text does not need to stay selectable.
- 3Press Flatten PDF. The new copy downloads with "-flattened" in its name, and the result tells you what was flattened and what was kept.
Sources
- Adobe Acrobat JavaScript API reference, Doc methods: flattenPages, which converts annotations, form fields and links to page contents
- ISO 32000-2:2020 clause 12, Interactive features, with the PDF Association's errata: 12.5.2, the appearance dictionary every annotation except pop-ups, projections and links shall have, and the note that without it the rendered look is implementation dependent
- Arlington PDF Model, PDF Association: the annotation types and their keys (appearance, appearance state, opacity, flags) as defined in ISO 32000
Frequently asked questions
Can I still select and search the text after flattening?
Yes, with the default method. Each field and annotation is drawn into the page as it looks, and text in it stays text, so you can still select, search and copy it, including the values that were typed into the form. Only Flatten as images turns every page into a picture; then the text can no longer be selected or searched.
Does flattening stop people from changing my PDF?
It stops the easy changes: nobody can type into a field, move a stamp or delete a comment any more, because they are no longer separate objects. In that sense the form becomes uneditable. It is not a lock, though. Someone with a PDF editor can still edit the page content, as with any PDF. To limit changes with a password, use Protect PDF after flattening.
Why are some comments still there after flattening?
Those comments have no appearance of their own in the file. The PDF standard leaves their look to each app, so there is no fixed picture to bake into the page. They stay as comments. Choose Flatten as images to make them part of the page as your browser shows them.
What happens to the text inside sticky note comments?
The note icon is baked into the page, but the comment text that opens in a pop-up window is not part of the page, so it is removed with the comment. If you need that text, export or copy the comments first in your PDF app.
Is my PDF uploaded?
No. Your browser opens the PDF, flattens it and saves the new file on your device. Nothing is sent to a server, so filled tax forms, contracts and signed papers stay private.
Can I undo flattening?
Not in the flattened file: the fields and comments are gone as objects. The tool never changes your original, it saves a new copy with "-flattened" in the name, so keep the original if you may need to edit the form again.