Flatten PDF — Merge Annotations, Forms, Layers, Free
Flatten PDF annotations, form fields, and layers into static content. Browser-only — no upload.
About Flatten PDF
Flattening a PDF merges interactive elements — annotations, form fields, comments, layers — into the static page content, producing a "frozen" PDF where the elements can no longer be edited. Useful for finalising contracts (preventing further form edits), reducing file size (annotations carry overhead), and ensuring consistent rendering across PDF readers (some readers misrender annotations). The ZTools Flatten PDF tool runs in the browser via pdf-lib, preserves visual appearance, and outputs a reduced, non-interactive PDF.
Use cases
- Finalise a signed contract. Form fields are filled, signature added. Flatten to lock the values — no one can edit them later.
- Submit a form via email. Recipient may not have the same form-aware reader. Flattened version renders identically everywhere.
- Reduce annotation clutter. A heavily-commented PDF; you want a clean version for distribution. Flatten merges comments into the page.
- Archive long-term. Future PDF readers may not support today's annotation format. Flattening guarantees the visual record persists.
How it works
- Drop PDF. Loaded into pdf-lib.
- Identify interactive elements. Annotations, AcroForm fields, layers (OCG). All counted.
- Flatten. Each interactive element rendered onto its page as static content; original interactive object removed.
- Save. New PDF with locked content. Smaller file, identical visual output.
Examples
Input: Filled-out tax form
Output: Form fields flattened — fields disappear; values remain as page text. Form is no longer editable.
Input: PDF with sticky-note comments
Output: Comments rendered as visible text overlays at their anchor positions; comment objects removed.
Input: Layered architectural drawing
Output: Visible layers merged into the page; hidden layers discarded.
Frequently asked questions
Does flattening reduce file size?
Usually yes — annotations carry XObject overhead. Flattening typically saves 10-30% on filled forms.
Will it preserve fonts?
Yes — text in flattened annotations uses the same font subsets. Visual output is identical.
Can I unflatten?
No — flattening is destructive. Always keep a backup of the original.
What about hidden layers?
Default: discarded. Toggle "preserve all layers" to flatten the visible state but keep layer structure (rare requirement).
Privacy?
All in browser.
Pro tips
- Always save a backup before flattening — once flattened, you can't unflatten.
- For signed contracts, flatten after signing — prevents accidental edits.
- For redaction, flattening alone doesn't redact — sensitive content in flattened form is still readable. Use a dedicated redaction tool first.
- For long-term archival, flatten + save as PDF/A for maximum future compatibility.
Reviewed by Ahsan Mahmood · Last updated 2026-05-06 · Part of ZTools.
For the full,
formatted version of this page, please enable JavaScript and reload
https://ztools.zaions.com/flatten-pdf.