← Back to Blog

Flatten PDF vs. Encrypt PDF: Choosing the Right Document Security Tool

When preparing a PDF for final distribution — a signed contract, a submitted form, a regulatory filing — two operations are frequently confused: flattening and encrypting. They solve different problems, operate on different layers of the document, and are often most effective when used together.

This guide explains what each operation does, when each is appropriate, and how to sequence them correctly.


What Flattening Does

A PDF can contain interactive layers on top of the static page content:

  • Form fields: Text boxes, checkboxes, radio buttons, dropdown menus that readers can fill in
  • Annotation layers: Comments, sticky notes, highlights, drawn signatures, shapes
  • Signature fields: Digital signature placeholders and embedded signatures

These interactive elements exist as separate structures within the PDF file — they sit on top of the base content but can be modified, removed, or manipulated by anyone with a PDF editor.

Flattening merges all these interactive elements into the base page. After flattening:

  • Text entered into form fields becomes permanent page content — uneditable
  • Signatures are embedded as visual elements that cannot be isolated or removed
  • Annotations become part of the page background
  • No interactive elements remain — the PDF is a static document

Flattening is fundamentally about locking the document state. It ensures that what you see is what is permanently recorded.


What Encryption Does

Encryption (password protection) wraps the entire document contents in a cryptographic layer. Without the correct password, the file cannot be opened. It addresses a completely different concern from flattening:

Flattening protects the integrity of document content. It prevents modification.
Encryption controls access to document content. It prevents reading.

After encrypting, someone without the password cannot open the PDF. They cannot read it, print it, or even extract its metadata.


When to Use Flattening

Flatten a PDF when:

  • You have completed filling a form and need to prevent field values from being changed. A tax form, application, or intake form where the data must be locked before submission.
  • You have added a signature and need to prevent it from being copied or deleted. An e-signature on a contract should be flattened to embed it into the page, making extraction much harder.
  • You have added annotations that should become permanent. Review comments converted to final notes, redlines incorporated into the final version.
  • You are sharing a document and need to prevent recipients from altering form data. Without flattening, a malicious recipient can change form field values with any PDF editor.
  • You need consistent display across all PDF viewers. Different PDF readers handle interactive elements differently. A flattened document looks identical everywhere because it has no elements to render differently.

When to Use Encryption

Encrypt a PDF when:

  • The document contains sensitive content and should not be readable by unauthorised parties. Financial statements, medical records, confidential proposals.
  • You are sending a document over email or through an insecure channel. Encryption protects the document in transit and at rest.
  • You have a compliance requirement to protect documents at rest.
  • You want to control who can open the document at all — even if they have obtained the file by other means.

When to Use Both

Many important documents benefit from both operations applied in sequence:

  1. Flatten first: Lock the interactive elements, embed the signatures, make the document state permanent.
  2. Encrypt second: Apply password protection to the flattened result, restricting who can open it.

Why this order? Flattening changes the document structure. If you encrypt first, you cannot flatten afterwards without the password. Flatten first, then encrypt the flattened copy.

Example workflow: a signed contract ready for final distribution

  1. Fill the contract form fields
  2. Add the signature
  3. Flatten with Flatten PDF — the form data and signature are now permanent page content
  4. Encrypt with Protect PDF — add a password to restrict who can open the document
  5. Send the encrypted file; communicate the password through a separate channel

Using PDFolio’s Flatten PDF Tool

PDFolio’s Flatten PDF tool runs entirely in your browser:

  1. Add your PDF. Drop the file into the workspace.
  2. Process. Flattening removes all interactive elements and merges them into the page content.
  3. Download the flattened file.
  4. Verify. Open the result in a PDF viewer and try to click on where form fields used to be — they should no longer be interactive. Try to select and delete a signature — it should be part of the background, not a removable element.

After flattening, proceed to Protect PDF if encryption is also needed.


Common Questions

Does flattening remove visible signatures? No. Flattening merges the signature into the page — the signature remains visible. It just becomes part of the page background rather than a floating element. Anyone viewing the document will still see the signature exactly as it appeared before flattening.

Can a flattened PDF be “unflattened”? No. Flattening is irreversible. The interactive elements are gone from the document structure. Keep the pre-flattening version if you might need to revise the document later.

Does flattening remove redactions? PDFolio’s Redact PDF tool handles redaction differently from the annotation layer. But if you have used annotation tools (drawing, highlighting) to approximate redaction, flattening ensures those overlays are permanently merged — though the underlying content may still be present if the annotation was not a true redaction tool. For proper redaction, use a dedicated redaction tool.

Is an encrypted PDF also a flattened PDF? No. These are independent operations. An encrypted PDF may still contain interactive form fields — anyone with the password can open the document and see and manipulate those fields. Flattening is necessary to lock the fields themselves.


Summary

Flatten Encrypt
Purpose Lock document content and interactive layers Restrict who can open the document
Prevents Form field modification, signature removal, annotation changes Unauthorised access to document content
Reversible? No Yes (with the password)
Changes visual appearance? No — content looks the same No — file is encrypted but presentation is unchanged to an authorised reader
Use together? Yes — flatten first, then encrypt —

Flatten your PDF to lock form fields and signatures →
Add password protection to control document access →