Flatten PDF Online
Flatten interactive AcroForm fields and annotations into the PDF page content. Permanent — fields can't be edited or re-filled after. Browser-local via pdf-lib. No upload.
Frequently asked questions
- What does flattening a PDF actually do?
- Flattening takes interactive elements — AcroForm fields like text inputs, checkboxes, dropdowns, radio buttons, and signatures — and burns their current values into the page's static content stream. After flattening, those values are part of the page graphics, identical to printed text. The form fields themselves are removed from the document, so no one can re-edit, re-tab through, or extract them as form data. The visual result looks identical; the structural change is that the editable layer is gone.
- When should I flatten a PDF?
- Three common cases. (1) You filled a form (tax, visa, HR, court) and need to send a non-editable final version — flattening prevents the recipient from changing your typed values. (2) You signed a PDF and want the signature locked into the page so a downstream tool that strips signatures cannot touch it. (3) You combined several PDFs and the merged output has stray empty form fields — flattening clears them and produces a clean static document. If the recipient needs to fill the form themselves, do NOT flatten — send the unflattened original.
- Is flattening reversible?
- No. Once flattened, the form fields are gone — there is no "unflatten" operation. The values become part of the page graphics, indistinguishable from the surrounding text. If you might need to edit the form later, keep an unflattened backup before running the tool. The tool always downloads the result as a new file, so the source PDF on your device is not overwritten — but if you only have one copy of the filled form, save a duplicate first.
- Are my files uploaded anywhere?
- No. The PDF stays on your device. pdf-lib runs entirely in your browser and writes the flattened file using only browser memory. The file is not sent to a server, there is no temporary copy, and no analytics event contains the file content. This matters because filled forms often carry tax IDs, Aadhaar numbers, salary figures, or contract terms that should not pass through a third-party server just to flatten a checkbox.
- What happens to digital signatures during flatten?
- Visible signature appearances are preserved as graphics — the user sees the signature image on the page. The cryptographic signature object itself is invalidated because flattening rewrites the file, which changes the byte sequence the signature was computed over. If signature validity matters legally (e-stamping, MCA filings, court submissions), do NOT flatten after signing — flatten before signing, or sign the flattened output as a fresh document. For a separate sign-then-flatten one-click flow, see the /sign tool.
- Does flatten remove annotations like comments and highlights?
- pdf-lib's `getForm().flatten()` operates on AcroForm fields specifically. Sticky-note comments, highlights, drawn ink markups, and other PDF annotations attached to pages may or may not be flattened depending on whether they're tied to form fields. For most office PDFs the answer is: form fields flatten, comments stay editable. If you need to remove all annotations including comments, run the file through Acrobat's "flatten all annotations" first or use a desktop tool — this browser tool focuses on the AcroForm flattening case.
- Can I flatten a PDF that has no form fields?
- Yes — the tool will report that no AcroForm fields were detected and will not modify the document structurally. You'll get a clean copy of the PDF back. There's no harm in running flatten on a non-form PDF; you just won't see any change.
- What's the file size limit?
- Soft limit around 100 MB for browser memory reasons. PDFs above that may slow down older devices. The flatten operation itself is lightweight — pdf-lib walks the form, paints field values onto pages, and writes a new file. Most of the cost is in the pdf-lib document model build, not the flatten itself.
How it works
- Drop the PDF in. The browser reads the file into memory. No upload — pdf-lib runs locally and the bytes never leave your device.
- The tool inspects the form. Each AcroForm field — text inputs, checkboxes, dropdowns, radios — is counted and surfaced so you know what's about to be flattened. PDFs with no form fields go through the operation as-is.
- Click Flatten. pdf-lib's `form.flatten()` walks every field, paints its current value onto the page content stream as static graphics, and removes the form field object from the document. The visual layout is preserved exactly.
- Download the flattened PDF. Open it in any PDF reader — the previously editable fields are now static text or graphics. Recipients can read and print but cannot retype, re-tab, or export the form data.
Flattening is permanent
There is no unflatten operation. The form fields are gone after the save — values become part of the page, identical to printed text. If you might need to edit the form again, keep an unflattened backup before running the tool. Filling a form, flattening it, then realising you typed the wrong tax code is a re-do scenario, not an edit-in-place scenario.
Two common workflows where this matters:
- Sign-then-flatten: add a signature in /sign first, then flatten here. The signature visual is locked into the page graphics; downstream tools that try to strip signatures cannot remove it.
- Fill-then-flatten: fill the form in /fill-pdf-form, then flatten the result here so the recipient cannot edit your values.