Flattening a PDF means merging all the interactive elements, form fields, annotations, layers, into the static page content. The PDF becomes a simple, non-interactive document that displays identically everywhere. Flattening is usually the final step before archiving or distributing, ensuring no one can accidentally modify form data or move annotations.
Flattening normally destroys form fields. The question is whether you can flatten the rest while keeping the form working.
Understanding how PDF Forms flattening works helps you decide whether selective flattening is possible. WukongPDF's PDF Editor handles PDF form management, and the explanation below covers what flattening does to form fields and what alternatives exist.

What Flattening Does to a PDF
Flattening converts interactive PDF elements into static page content. Annotations become part of the page image. Form fields lose their interactivity and become text or graphics on the page. Layers merge into a single visible layer. The flattened PDF is simpler, more compatible with older viewers, and more resistant to accidental modification.
The trade-off is the loss of interactivity. Form fields that accepted text input become static text that cannot be edited. Dropdown menus become fixed text showing the last selected value. Signature fields become static images. The flattened file preserves what was visible at the moment of flattening but loses all ability to change.
Try Edit PDF
No installation needed. Works directly in your browser.
Why You Cannot Flatten Everything Except Form Fields
Flattening is an all-or-nothing operation in most PDF tools. The flatten command merges all interactive elements on the selected pages. There is no setting to exclude form fields from flattening while flattening annotations. The tool applies flattening to the page, not to categories of elements on the page.
The PDF specification supports selective flattening in principle, annotations and form fields are different object types, but most PDF tools do not expose this granularity in their user interface. The user sees one Flatten button that flattens everything. Advanced PDF manipulation libraries accessible through scripting can selectively flatten specific element types, but this requires programming knowledge and a development environment.
Workaround: Flatten in Stages
If you need to flatten annotations while keeping form fields active, process the document in stages. First, extract the form fields and their current values to a separate file or data structure. Second, flatten the entire document. Third, re-add the form fields to the flattened document and populate them with the extracted values.
This workaround is practical for simple forms with a small number of fields but becomes impractical for complex forms with dozens of fields, calculations, and validation rules. The reconstruction step must recreate every field property, not just the visible value. The time invested in reconstruction may exceed the time saved by flattening annotations selectively.
Alternative: Locking Instead of Flattening
Locking annotations and form fields provides tamper resistance without destroying interactivity. A locked annotation cannot be moved or deleted, but the form fields remain functional. Locking individual elements achieves much of the protection that flattening provides while preserving the form's usability.
In Adobe Acrobat, select an annotation or form field, open Properties, and set the Locked property. The element is protected from accidental modification. A script can lock all annotations on all pages in one operation, achieving annotation-level protection without touching form fields. Locking is the practical alternative to selective flattening for most use cases.
| Goal | Flattening | Locking |
|---|---|---|
| Prevent annotation movement | Yes (but also destroys forms) | Yes (preserves forms) |
| Prevent form field editing | Yes | Yes (set Read Only) |
| Preserve form interactivity | No (destroys it) | Yes |
| Ensure consistent display | Yes | Yes (annotations locked in place) |
Using JavaScript to Automate Selective Locking
Adobe Acrobat supports JavaScript that can iterate through every annotation on every page and lock them individually. A short script, saved as an Action in Acrobat, can be run with one click on any document. The script locks all annotations, and only annotations, leaving form fields untouched. This is the closest practical equivalent to selective flattening for most users.
The script approach requires writing or obtaining the JavaScript once. After that, it is a reusable tool that works on any PDF. The investment of finding or writing the script pays back with every document where you need to protect annotations while preserving forms. The script does exactly what the Flatten button cannot: separate treatment of annotations and form fields.
Preserving Form Field Data in Archived Documents
Archived forms present a specific challenge. The form must be preserved as a record of what was submitted, but the blank form fields should remain fillable for future use. The solution is to save two versions: one flattened copy as the submission record, and one unflattened copy as the reusable form template. The flattened copy is the archive. The unflattened copy is the working document.
Label the two versions clearly in the filename: Form-Archived-Flattened.pdf and Form-Template-Fillable.pdf. The naming prevents confusion about which version to use for which purpose. The 10 seconds spent on clear naming prevents the hours of frustration from discovering that the archived version cannot be edited, or that the editable version has been modified from the original submission.
When Flattening Is the Right Choice
Flatten before archiving the final, approved version of a document that will never be edited again. The flattened PDF is the permanent record. No recipient can accidentally modify a form field or move an annotation. The file is frozen in its approved state.
Do not flatten working documents that are still in review, forms that recipients need to fill out, or documents that will be updated in the future. Flattening is irreversible. Once flattened, the interactive elements are gone. Keep an unflattened original alongside the flattened version if there is any chance the document will need future editing.
Try Edit PDF
No installation needed. Works directly in your browser.
