Browser-based PDF tool · PDF → Flattened PDF

Flatten PDF

Draw filled form fields and annotations into the page itself, so the answers and markup look the same in every viewer and there are no fields left to click into.

Drop your PDF file here or click to choose

PDF up to 50 MB

Flatten

Flatten PDF

Operator: Abdulla Al Fahad. How tools are built and checked

A filled PDF form is two layers: the printed page, and interactive fields floating over it that hold your answers. Some viewers draw those fields differently, some phones hide them, and anyone who opens the file can click into a box and change an amount. Flattening removes the floating layer and paints what it showed into the page, so the answers become ordinary page content that looks the same everywhere.

The same applies to annotations: highlights, stamps, shapes and comment icons added in a PDF reader. Flattening them fixes the markup in place, which is what a recipient expects from a marked-up drawing or an approved proof. You choose whether to flatten form fields, annotations or both; both are on by default, and the result downloads as the original name with -flat added.

Key features

  • Flattens text fields, check boxes, radio buttons, drop-downs and list boxes into page content.
  • Flattens annotations such as highlights, ink, shapes, stamps and note icons from their own appearance streams.
  • Separate switches for form fields and annotations.
  • Removes the form definition after flattening so no field widgets remain.
  • Leaves links clickable and leaves pages without fields or annotations untouched.
  • Reports how many fields and annotations were flattened and how many annotations were kept.

Every field and annotation in a PDF can carry an appearance stream, a small drawing that says exactly how it should look. Flattening takes that drawing, adds it to the content of the page it sits on, and deletes the interactive object. Form fields go through the same routine as the site's Fill PDF Form tool: appearances are regenerated from the current values first, and if that cannot be done safely the existing appearances are used instead.

Annotations are placed with the rule the PDF specification gives for viewers: the appearance's bounding box, after its own transformation, is scaled and moved to fill the annotation's rectangle, and its opacity setting is kept. A check box or a stamp with several states is drawn in the state currently shown.

After the fields are flattened the form definition (the /AcroForm entry) is removed from the document, so viewers no longer treat the file as a form. Pages that hold no fields or annotations are not rewritten: their content streams are carried into the output unchanged.

How it works

Form fields are handled first, when that switch is on and the document has any. The result is then reopened and each page's annotation list is walked: annotations with a drawable appearance are stamped onto the page and removed together with their pop-ups, while links, hidden annotations, media players and annotations without an appearance are counted and left in place.

Finally the form definition is dropped and the document is saved. If nothing in the file could be flattened, no file is produced and the page says why, instead of handing back an identical copy.

Common use cases

  • Sending a completed tax, benefit or application form that the recipient must not be able to alter.
  • Emailing a filled form to someone whose phone shows empty boxes because its viewer ignores field values.
  • Fixing reviewer stamps such as Approved or Rejected onto a proof before it goes to the printer.
  • Fixing highlights and shapes onto a marked-up drawing so they survive being merged into a larger PDF.
  • Preparing a filled form for tools that read page text only, such as Compare PDF Files or PDF to Text.

How to use this tool

  1. Drop the PDF on the drop zone or click to choose it.
  2. Leave both Form fields and Annotations ticked, or untick the one you want to keep interactive.
  3. Press Flatten PDF.
  4. Check the summary chips and any notes, then press Download .pdf.

Example

A 3-page test PDF built for this page

Page 1: plain text, no fields or annotations
Page 2: a text field filled with "Ada Lovelace" and a ticked check box
Page 3: a red square annotation at 50% opacity with a pop-up note, plus a link
Both switches on; file name "my form.pdf"

Result: my form-flat.pdf

Chips: 3 pages · 2 form fields flattened · 1 annotation flattened
Note: 1 annotation was kept as it is (the link)
Reloaded output: no /AcroForm, no Widget annotations on any page
Page 1 content stream: byte-for-byte the same as the input
Page 3: the square, drawn from a 50 × 30 appearance box into its 100 × 60 rectangle at 2× scale and 50% opacity; its pop-up removed

Tips for best results

  • Fill and save the form first, then flatten the saved copy; flattening draws what is stored in the file, not what was typed into an unsaved viewer window.
  • Keep the fillable original. A flattened copy cannot be turned back into a form.
  • Untick Annotations if you want to fix the form answers but keep reviewers' comments open for discussion.
  • Untick Form fields if you only want to fix markup in place on a form that still needs filling in.
  • Open the -flat file and try clicking a box: nothing should respond, and the answers should still be there.

Common pitfalls

Sticky-note comments lose their text. The note icon is drawn onto the page, but the pop-up that held the comment is removed with it. If the comment text matters, export or copy it before flattening, or untick Annotations.

Flattening is not redaction and not protection. The answers become page text that can still be selected, copied and, with a PDF editor, changed. To remove information use a redaction tool; to stop editing, add a password with a protection tool after flattening.

A digitally signed PDF loses its valid signature, because any change to the file breaks it. Flatten first and sign last.

Common errors and how to fix them

The page says the PDF has no form fields or annotations to flatten.
The file is already flat. Forms that look fillable but have no clickable boxes were usually printed to PDF or scanned, and their answers are already page content.
A note says some fields could not be flattened and the form stayed fillable.
Redrawing the fields failed, often because an answer contains characters the standard PDF fonts cannot draw, and at least one field has no stored appearance to fall back on, so flattening would have blanked it. Open the form in a desktop PDF reader, save it there so appearances are written, and flatten that copy.
The file is refused as password-protected.
Remove the open password with Unlock PDF first. Files that only restrict printing or copying are accepted, and the result is saved without those restrictions.
Some annotations were kept.
Links are kept on purpose. Hidden annotations and ones without an appearance stream have nothing to draw; some older readers save notes that way and draw them on the fly.

Best practices

  • Flatten as the last edit before sending, after filling, adding pages and stamping are done.
  • Name and keep the fillable master separately from the -flat copies you send out.
  • Spot-check one page with fields in two different viewers after flattening; they should now look identical.
  • If the recipient must not edit the file at all, add protection after flattening, since flattening alone does not prevent edits.

What stays interactive after flattening

Web and email links remain clickable, because a link is an action rather than a mark on the page and drawing it would add nothing. Bookmarks, page labels and the document outline are not touched either. Hidden form fields, which show nothing on screen, are removed with the rest of the form instead of being drawn.

Why some flattened answers look slightly different

When a field's stored appearance is out of date, it is redrawn from the field's value using a standard font before flattening. The words are the same, but the font may differ from the one your reader used on screen. Fields that already carried an up-to-date appearance keep exactly that look.

Frequently asked questions

Can a flattened PDF be filled in again?

No. The fields are gone and the answers are part of the page. Keep the original if you may need to change an answer.

Will the file size change?

It can go either way. Each flattened item adds a short drawing instruction to its page, while the field and annotation objects themselves are removed, and the whole file is saved again with compressed object streams.

Does flattening remove the comments panel in my reader?

Yes for the annotations that were flattened, since they are no longer annotations. Kept ones, such as links, still appear where your reader lists them.