Skip to content

Flatten a PDF Without Breaking Its Signatures

6 min read Updated June 7, 2026

Flattening locks a filled form so values cannot be edited, but doing it to a digitally signed PDF voids the signature. Here is how to tell the cases apart.


Search for how to flatten a PDF and most guides hand you the same trick: open the file, choose Print, then pick “Save as PDF” as the printer. That does flatten the page, but it also throws away things you may need, and it walks you straight into a trap nobody mentions. If the document carries a digital signature, you just broke it.

Flattening is a useful operation once you know what it actually does and when it ruins a file. The confusion comes from treating “flatten” and “print to PDF” as the same move. They overlap, but they are not interchangeable, and the difference matters most on the exact files people most often want to flatten: signed forms.

TL;DR: Flattening merges interactive layers into the static page so values can no longer be edited. It locks a filled form. It also voids any certificate-based digital signature, because the signature covers the precise bytes of the file and flattening rewrites them. A drawn or typed signature image is safe to flatten.

What flattening actually does

A PDF can hold more than the picture you see. Underneath the visible page sit interactive layers: form fields you can type into, checkboxes you can toggle, annotations like comments and highlights, and stamps. These are live objects. A viewer reads them and lets you change their values.

Flattening collapses those live objects into the page itself. The form field that held the text “Maria Alvarez” stops being an editable field and becomes ink painted onto the page at that spot. The checkbox you ticked becomes a fixed mark. The annotation becomes part of the artwork. Nothing about the appearance changes. What changes is editability. After flattening, the next person who opens the file sees the same answers but cannot click into a field and retype them.

This is why flattening also makes a document render the same everywhere. Interactive fields can behave differently across viewers, and some mobile or browser PDF readers display them inconsistently or hide annotations. Once the values are baked into the page, every viewer shows identical output because there is nothing left to interpret.

Why people need it

Two practical reasons drive most flatten requests.

The first is locking a filled form. You complete a PDF application, an intake sheet, or a consent form, and you send it on. If the fields stay editable, the recipient can change your answers, intentionally or by accident, before they print or forward it. Flattening freezes the answers so the version you sent is the version everyone sees.

The second is making annotations stick. You mark up a contract with highlights and comments, then send it for review. In some readers those annotations sit in a separate layer that a recipient can toggle off, move, or delete. Flattening merges them into the page so the markup is permanent and travels with the document.

In both cases the goal is the same: produce a final, fixed artifact that cannot be quietly altered downstream.

The signature trap

Here is the part the print-to-PDF guides skip.

A certificate-based digital signature is not a picture. It is a cryptographic seal calculated over the exact byte contents of the document at the moment of signing. The point of that seal is tamper evidence. A viewer can recompute the math and tell you whether even a single byte changed since the signature was applied. If nothing changed, the signature shows as valid. If anything changed, it shows as invalid or broken.

Flattening changes the bytes. By definition, it rewrites the document, converting live form fields and annotations into static page content. That is exactly the kind of modification the signature is designed to detect. So flattening a digitally signed PDF does not gently coexist with the signature. It invalidates it. The viewer will report the signature as no longer valid, because from its point of view the document was altered after signing, which is true.

This produces a genuinely bad outcome. Someone signs a document to vouch for its contents. You flatten it to “lock it down,” believing you made it more final. Instead you stripped the very proof that made it trustworthy. The recipient now has a document that looks signed but verifies as tampered.

The decision tree

Before you flatten anything, answer one question. Do you need the document locked and final, or verifiable and tamper-evident?

Those are different goals and they call for opposite actions.

  • Locked and final. You want the answers frozen so nobody can edit them, and you do not need cryptographic proof of who approved it. Flattening is the right tool. Fill the form, flatten it, send it.
  • Verifiable and tamper-evident. You want a recipient to be able to confirm the document is authentic and unchanged since signing. Do not flatten. Keep the signature. The signature already prevents undetected edits, which is a stronger guarantee than flattening gives you. Flattening would only destroy that guarantee.

If you need both a flattened copy and a verifiable signed copy, treat them as two separate files. Flatten before signing if a final visual is required, then sign the flattened result. Once a valid digital signature exists, leave that file alone.

Drawn signatures versus digital signatures

The word “signature” hides the most common mistake, so separate the two kinds clearly.

A drawn or typed signature image is artwork. You scribbled your name with a trackpad, dropped in a scanned signature graphic, or typed your name in a script font. It carries no cryptographic data. It is pixels on the page, no different from a logo. Flattening it is completely safe. In fact flattening is often what you want, because it bakes that signature image permanently into the page so it cannot be moved or deleted.

A certificate-based digital signature is the cryptographic seal described above. It links the document to a verified identity and proves the bytes have not changed. This is the kind that flattening breaks.

Quick way to tell them apart: open the file and look for a signature panel or a banner reporting the document as signed or certified, usually with a validity status. If you see that status indicator, you have a real digital signature and you should not flatten. If you only see a handwritten-looking graphic with no validity status attached, it is an image and flattening is fine.

A practical workflow

Put it together into steps you can follow on any signed-or-filled PDF.

  1. Open the file and check for a signature status. Banner or panel saying signed or certified means a digital signature is present.
  2. If there is a valid digital signature and you need it to stay valid, stop. Do not flatten. Send the file as is.
  3. If there is no digital signature, or only a signature image, and your goal is to lock the answers or fix annotations, flattening is appropriate.
  4. Before flattening, save an editable copy of the original. Flattening is one-way, so if you might need to change answers later, keep that copy.
  5. Flatten, then confirm the values still appear correctly. The appearance should be unchanged; only editability should be gone.

Keeping the original is the cheapest insurance here. There is no unflatten button, so the editable version is your only path back if a typo surfaces after you have already locked the file.

Local flatten tools that keep your document on your own machine are coming soon to pdf.hivly.net, so you will be able to lock a filled form without uploading it anywhere. Until then, the decision tree above is the part that actually protects you: know whether you want the file locked or verifiable, and never flatten a document whose signature you still need.

Try the pdf toolsMerge, split, compress, protect, unlock, sign and convert PDFs to and from images.

Frequently asked questions

Does flattening a PDF remove its digital signature?
It invalidates a certificate-based digital signature because flattening rewrites the document bytes the signature was calculated over. A drawn or typed signature image is just artwork on the page, so flattening keeps it intact.
Will my filled form fields still be visible after flattening?
Yes. The values stay exactly where they were rendered. Flattening only removes the ability to edit them, painting the current contents permanently onto the page.
How can I tell if my PDF has a real digital signature?
Open it in a PDF viewer and look for a signature panel or a banner saying the document is signed or certified. If you only see an image of a handwritten signature with no validity status, it is not a cryptographic signature.
Can I unflatten a PDF later?
No. Flattening is one-way. Keep an editable copy of the original before you flatten if you might need to change the answers again.

Keep reading

Building something bigger?

Hivly is made by CodingEagles, a software studio that ships production web apps. If you have a real project, get in touch.

See what CodingEagles does →