PDF Tools

Flatten a PDF: forms and annotations into fixed page content.

Turn fillable fields, highlights and stamps into part of the page so nobody can edit them by accident. Choose forms only, keep or drop links, and get a plain report of anything that could not be drawn. Nothing is uploaded.

What flattening does to a PDF

A fillable PDF keeps its answers separate from the page: each box is a small live object with a value that a viewer can edit. Flattening draws what each object currently looks like straight onto the page, then removes the live object. After that the form cannot be edited or cleared, and what you see is what every viewer, printer and e-mail preview will show.

Options

What the report tells you

After flattening, the result lists how many fields and annotations were handled, how many hidden fields or annotations were removed instead of drawn, and how many had no stored appearance and so could not be drawn. Nothing is silently dropped.

The file is read and rewritten in your browser. The isolated tool frame loads no advertising or analytics scripts and cannot open network connections.

Good to know

Document properties, metadata and scripts stay in the file. Form fields marked hidden are removed instead of drawn, so their values do not appear on the page. This tool opens your PDF with a different reader than the one that drew the preview, and it keeps your pages whole rather than removing content. A PDF built to look different in different readers (for example with an extra hidden version of a page added after its end) can come out different from the preview, so look at the saved file. Fonts and images stay with their pages, and a font used on several pages can reveal which characters appear in the file. To take something out of a document for good, use the redact tool, which turns every page into a picture.

How the flattening works, step by step

The tool opens your PDF with the open-source pdf-lib library and first counts the form fields and annotations so you can see what is in the file. Each of the two groups is then handled differently, because the PDF specification stores them differently.

Form fields. Every visible field is a “widget” annotation with an appearance stream: a small drawing that shows its current value. For each field the tool first refreshes that drawing from the stored value, using the standard Helvetica font, then draws the appearance into the page content at the widget’s rectangle, then deletes the field. If a value contains characters that Helvetica cannot encode, it falls back to the appearance the file already had. When the form has no fields left, the form dictionary itself is removed from the document, which also discards any XFA data.

Other annotations. For each remaining annotation that has a normal appearance stream, the tool places that stream onto the page. The specification says the appearance is defined in its own coordinate box and must be scaled and moved to fit the annotation’s rectangle (section 12.5.5, algorithm 8.1), so the tool computes that transform and draws the stream with it. The annotation is then removed. Annotations flagged Hidden or NoView are not drawn, because a viewer would not show them either. Pop-up windows are removed with their parent.

Once everything is processed the tool also deletes objects that nothing points to any more, such as the removed annotation dictionaries and their comment text, so they are not left in the saved file.

Worked example

You filled in a rental application in a viewer: name, date, two check boxes and a signature typed into a text box. You want to e-mail a copy that nobody can edit by accident. Open it here with all three boxes ticked and press flatten. The result reports 5 form fields flattened and 0 annotations without a picture. In the new file the answers are part of the page: you can still select the text of the typed answers, but you can no longer click into the boxes, and a viewer’s “clear form” button has nothing to clear.

Flatten versus remove versus redact

  • Flatten keeps the look and drops the editing. Use it when the content should stay visible.
  • Remove deletes annotations and their text outright. Use the comment remover when review comments must not be seen.
  • Redact destroys underlying text. Flattening a form does not hide anything: a flattened answer is still in the file as text. For sensitive data use the redact tool.

Common mistakes

  • Flattening before the form is finished. The step is one-way. Keep your original and flatten a copy.
  • Expecting hidden data to vanish. A flattened field shows its value to everyone, including values you may have meant to leave blank.
  • Forgetting signatures. Any change to a signed PDF breaks the signature. Flatten first and sign afterwards.
  • Assuming sticky-note comments survive. Many “note” comments show only a small icon whose picture the viewer draws itself and so have no stored appearance. Those are counted in the report as not drawn and are removed.

What this tool does not do

  • It does not flatten dynamic XFA forms. Those store their layout in XML, not in page widgets; without stored appearances the fields come out blank. Print such a form to PDF from the program that opened it instead.
  • It does not merge layers (optional content) or flatten transparency, which is a print-production step.
  • It does not convert the page to an image. Text on the page stays text.
  • It does not open password-protected files. Remove the password first with the remove password tool.
  • It does not touch JavaScript stored elsewhere in the document or attached files.

Limits

Up to 40 MB and 500 pages. Very large forms with thousands of fields can take several seconds on a phone.

Related tools

Add a signature after flattening with sign PDF, shrink the file with the PDF compressor, fit it to a standard paper size with change PDF page size, or lock it with password protection.

Frequently asked questions

What does it mean to flatten a PDF?

It means turning live parts of the file, such as fillable form fields and annotations, into ordinary page content. The look is kept; the ability to edit or move those parts is removed.

Does my PDF get uploaded when I flatten it?

No. The file is processed on your device in a sealed frame that has no advertising code and cannot make network requests.

How do I flatten only the form fields and leave comments alone?

Untick “Other annotations” and keep “Form fields” ticked. Highlights and comments then remain live annotations.

Why does the report say some annotations could not be drawn?

An annotation can be stored without a picture and rely on the viewer to draw it, as many sticky notes do. With no stored appearance there is nothing to paint onto the page, so the annotation is counted and removed rather than faked.

Will flattening hide or delete the text people typed into the form?

No. The values stay visible and the typed text is still part of the page. If you need information gone for good, use the redact tool instead.

Can I undo flattening?

Not in the new file: the fields are deleted. Keep your original and flatten a copy.

Does it work on XFA or Adobe LiveCycle forms?

Not reliably. Those forms keep their layout in XML and often have no stored field appearances, so the result can be blank. Print them to a new PDF from the program that fills them in.

Does flattening break a digital signature?

Yes. Saving a changed file invalidates any signature that was in it. Flatten first, then sign.

Sources

Checked

  • Adobe PDF reference, PDF 32000-1 (ISO 32000-1) — annotation appearance streams and how they map onto the annotation rectangle (section 12.5.5); interactive forms and widget annotations (section 12.7) (retrieved 2026-10)
  • pdf-lib PDFForm API — form.flatten() draws each field appearance into the page and removes the field (retrieved 2026-10)
  • pdf-lib — the library used to read, draw into and save the PDF (retrieved 2026-10)

Runs entirely in your browser. Nothing you choose is sent or stored.

Common mix-ups

  1. ISO 32000-1 (PDF 1.7) specification, Adobe-hosted copy

Checked against these sources on .

Advertisement
Advertisement