Flattening a PDF means merging all interactive and overlay layers — form field values, annotations, comments, whiteout covers, and signature images — permanently into the base page content. After flattening, what was an interactive annotation becomes drawn lines and text in the page itself; the individual elements can no longer be selected, moved, or removed independently. This guide explains when to flatten, the different types of flattening, and how to do it in various tools.

Why flatten a PDF?

Flattening solves specific problems: Prevent editing of completed forms — A filled AcroForm still has interactive fields that can be edited or cleared by any recipient with a PDF editor. Flattening converts the field values into static page text; the form can no longer be modified. Ensure annotations print correctly everywhere — Some printers and print workflows do not render PDF annotations — they print the base page but not the overlay comments, highlights, or stamps. Flattening merges annotations into the page so they print on every device. Prepare for archiving — Long-term archiving in PDF/A-1 or PDF/A-2 requires that there are no interactive elements (JavaScript, unflattened form fields) that depend on live application behaviour. Flattening removes these dependencies. Finalise a signed document — After a document is fully signed, flattening prevents any further changes — including modification of fields that were not covered by the signature. Note: flattening removes the cryptographic signature objects themselves; for documents where signature verification matters, do NOT flatten — keep the digital signatures intact and use PDF permissions restrictions instead. Reduce file size — Annotations, form fields, and their appearance streams add overhead. Flattening removes the separate overlay objects and can reduce file size, especially for heavily annotated documents. As noted in HowToGeek's flattening guide, file size reduction is a common secondary benefit.

Types of flattening

Full flatten — Merges all interactive content: form fields, annotations, comments, stamps, digital signatures, optional content layers, and markup annotations (highlights, underlines). The result is a fully static PDF with no interactive elements. Annotation-only flatten — Merges only annotation objects (comments, highlights, stamps) into page content while leaving form fields interactive. Useful for distributing a reviewed document where comments should be permanent but fields should remain fillable. Form flatten (or "print as appearance") — Merges form field values into page content while removing the interactive fields. The typical output of "Print to PDF" from a form — the values appear as static text but the fields are gone. Partial flatten — Flatten specific annotations only (e.g., flatten all highlight annotations but keep sticky note comments). Requires programmatic control via a PDF library. Signature flatten — A specific concern: PDF digital signatures are annotation objects, but they contain cryptographic data that cannot be meaningfully flattened. Flattening a digitally signed PDF removes the signature's verifiability. If you need to flatten a signed PDF, the practical effect is the same as removing the signature — do this only when the verification requirement is explicitly not needed downstream.

How to flatten in different tools

Adobe Acrobat Pro — Print to PDF (the most reliable method): File > Print > choose "Adobe PDF" printer > ensure "Print as image" is off > Print. Acrobat renders the page with all annotations merged and produces a new flat PDF. Alternative: Tools > Print Production > Flattener Preview allows selective flattening with control over transparency and annotation types. Adobe Acrobat Reader (free) — Print to PDF using the system's built-in PDF printer (Microsoft Print to PDF on Windows, Save as PDF on macOS). This flattens form fields and most annotations. Less precise than Acrobat Pro. macOS Preview — File > Export as PDF, or print to PDF. Preview's export merges visible content including annotations. Apple's Preview documentation notes that exported PDFs include all visible annotations merged. Google Chrome / Edge (browser print to PDF) — Open the PDF in the browser, Ctrl+P, choose "Save as PDF". This renders the page with all visible content including annotations. Quick and effective for form flattening when no dedicated tool is available. Command-line (Ghostscript) — gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dFlattenAnnotations -sOutputFile=flat.pdf input.pdf — Ghostscript is the most powerful free command-line option; supports batch processing and programmatic integration. pdf-lib (JavaScript) — pdf-lib does not have a dedicated flatten API, but form field values can be read and re-written as page-level content (text overlays) while removing the field objects — effectively a manual flatten implementation.

What flattening cannot do

Flattening is not the same as redaction. A flattened whiteout annotation (white rectangle over text) merges the white rectangle into the page, but the original text data in the PDF content stream may still be present beneath it. True redaction requires content stream removal — not just visual coverage, even after flattening. Flattening also does not: - Remove PDF metadata — Author, creation date, document history remain. Strip metadata separately with ExifTool or Acrobat's Sanitize Document tool. - Remove embedded file attachments — Use Acrobat's Sanitize Document tool to remove attachments. - Remove PDF JavaScript — Document-level JavaScript is not an annotation; it remains after flattening. Use Sanitize Document to remove JavaScript. - Make fonts editable — The flattened text is drawn as the same font glyphs; it is still rendered text, not editable content.
Flatten a PDF when you need to finalise interactive content for distribution, ensure consistent printing, or prepare for archiving. Use the print-to-PDF method for quick flattening in any tool; use Ghostscript for batch processing; use Acrobat Pro for precise control. Remember that flattening is not redaction — to securely remove sensitive content, true redaction (content stream removal) is required separately.