How to Flatten a PDF (and Whether You Should After Signing)
Flattening merges form fields, comments, and stamped signatures into the page so they can't be edited or moved. How to do it in Acrobat, Preview, Chrome, qpdf, and pdftk, and why you must never flatten after a digital signature.
Flattening a PDF merges its interactive layers, such as form fields, checkboxes, comments, and stamped signature images, into the page itself. Afterwards they are part of the printed content instead of separate objects that can be clicked, edited, moved, or deleted. You should flatten a filled form before sending it as a final copy. You should not flatten a PDF that carries a certificate-based digital signature, because flattening rewrites the file and breaks that signature.
What is actually inside a PDF that isn't flat?
A PDF page has a content stream, which holds the instructions that draw the text, lines, and images you see. On top of that, a PDF can carry two kinds of separate objects that are not part of the content stream:
- Form fields (AcroForm): text boxes, checkboxes, radio buttons, dropdowns, and signature fields. Their values are stored separately and drawn by the viewer each time the file opens.
- Annotations: comments, highlights, sticky notes, stamps, and freehand ink. Many "sign" tools in PDF viewers add your signature as a stamp or ink annotation.
Both live in a layer the viewer renders over the page. That layer is why a filled form stays editable. It is also why the same file can look different in Chrome, Preview, and Acrobat.
Why does an unflattened signed PDF cause problems?
The values can be changed after signing
If someone fills a form, adds a signature stamp, and sends it on unflattened, the recipient can usually click into a field and change "$4,500" to "$5,400" with any free PDF viewer. A stamp-style signature annotation can often be dragged off the page or deleted. Nothing about the file's appearance reveals that this happened.
Different viewers show different things
Form fields are drawn by the viewer using the field's appearance data. When that data is missing or a viewer handles it differently, values can disappear, fonts can change, and checkboxes can show as empty. This is especially common when a form was filled in one app and opened in another, such as a mobile viewer. A flattened file shows exactly the same marks everywhere, because they are now ordinary page content.
Printing and archiving drop the layer
Some print drivers and document-management systems ignore annotations, and some ignore form appearances too. A signature that exists only as an annotation can disappear from the printed or archived copy. Long-term archival formats such as PDF/A also restrict interactive content, so flattening is a normal step before archiving.
When should you flatten a PDF, and when shouldn't you?
| Situation | Flatten? | Why |
|---|---|---|
| You filled a form and are sending the final version | Yes | Locks values against casual edits and fixes how it looks |
| You signed with a stamp or drawn-ink tool in a viewer | Yes | Turns a movable annotation into page content |
| Archiving signed contracts for retention | Yes | Consistent rendering for years; PDF/A friendly |
| Someone else still needs to fill fields | No | Flattening removes the fields they need |
| The PDF has a certificate-based digital signature | Never after signing | Flattening rewrites the file and invalidates the cryptographic signature |
| You need to keep comments for a review history | Keep an unflattened copy | Flattened comments can't be replied to or resolved |
The digital signature row needs more explanation. A certificate-based digital signature, the kind that shows "Signed and all signatures are valid" in Acrobat, works by hashing the file's bytes. Flattening changes those bytes, so the signature then shows as invalid or broken. If you need both, the order is: fill, flatten, then apply the digital signature. For the background on the two signature types, see e-signature vs digital signature.
How do you flatten a PDF?
Adobe Acrobat Pro
- Open the PDF and go to Print production → Preflight (in newer versions, search the tools for "Preflight").
- Search the fixups for "Flatten annotations and form fields".
- Run the fixup and save the result under a new file name.
A cruder alternative in Acrobat is File → Print → Adobe PDF, which re-renders every page. It flattens everything, but it can also strip bookmarks, links, and searchable structure.
macOS Preview
Preview's File → Export as PDF generally keeps form fields and annotations interactive. To flatten, use File → Print, then open the PDF dropdown at the bottom left and choose Save as PDF. Printing to PDF re-draws the pages, so fields and annotations become fixed content.
Google Chrome or Microsoft Edge
Open the PDF in the browser, fill it, then press Ctrl+P (Cmd+P on Mac) and choose Save as PDF (Chrome) or Microsoft Print to PDF (Edge). The saved file is flattened. Check the preview first: browsers sometimes skip annotations that use unusual appearance settings.
Windows: Microsoft Print to PDF
From any PDF viewer, print to the built-in Microsoft Print to PDF printer. The output is fully flattened, but text may lose its searchability in some viewers, and the file can grow larger.
Command line: qpdf and pdftk
For batches, the free open-source tools are more precise than print-to-PDF because they flatten without re-rendering the whole page:
qpdf --generate-appearances --flatten-annotations=all input.pdf flat.pdf
--generate-appearances first builds a proper visual appearance for each filled field. --flatten-annotations=all then merges every annotation, form fields included, into the page content. With pdftk, the equivalent is:
pdftk input.pdf output flat.pdf flatten
How can you tell whether a PDF is flattened?
- Click test: click on a filled value. If a cursor appears or a field outline highlights, it isn't flat.
- Drag test: try to select and move the signature. If it moves as an object, it's an annotation.
- Acrobat: open Prepare a form. On a flattened file, Acrobat reports no existing fields.
- Command line:
qpdf --json input.pdflists AcroForm fields and annotations per page. An empty list means the file is flat.
Does flattening make a PDF tamper-proof?
No, and this is the most common misconception. Flattening removes the easy way to change a value. It does not stop someone with a PDF editor from covering text with a white box and typing new text over it. Flattening makes a document resistant to casual edits. It does not make tampering detectable.
Detection comes from a separate record of the original. A certificate-based digital signature does this with a hash of the file's bytes. An e-signature platform does it by storing the completed document itself, together with an audit trail of who signed and when. If someone later produces an altered copy, the stored original contradicts it.
How does DottiSign handle this?
When a recipient signs in DottiSign, their signature image and the values they entered are drawn directly into the page content of the PDF on the server. They are not left as movable annotations or editable form fields. This happens each time a signer finishes, so in a multi-signer document every person opens a copy that already shows earlier signatures as fixed page content.
DottiSign also keeps the original uploaded PDF unchanged and stores the signed version separately. The document owner can always compare the completed file against what was originally sent. Recipients sign through a secure link from any device without creating an account. Your first documents are covered by the free plan.
Frequently asked questions
Does flattening a PDF reduce its quality?
Flattening with Acrobat's Preflight fixup, qpdf, or pdftk merges fields into the page without converting text to images, so quality and searchability are preserved. Print-to-PDF methods re-render each page. They can increase file size and, depending on the printer driver, may turn text into outlines, which affects copy-paste and search.
Can a flattened PDF be unflattened?
No. Once form fields and annotations are merged into the page content, the original field structure is gone. You can recreate fields with a form editor, but the values are now ordinary text. Always keep an unflattened master copy if you might need to edit or refill the form later.
Should I flatten a PDF before or after signing?
For a stamped or drawn signature, flatten after signing so the signature becomes fixed page content. For a certificate-based digital signature, flatten before signing, because flattening afterwards changes the file's bytes and invalidates the cryptographic signature. When in doubt, apply the digital signature last.
Is a flattened signed PDF still legally valid?
Yes. Under the U.S. ESIGN Act and UETA, an electronic signature's validity depends on the signer's intent and on the record being attributable to them. It does not depend on whether the signature is stored as an annotation or as page content. Flattening changes how the signature is stored, not whether it counts.