Lock a PDF From Editing: Permissions Password, Flattening or Both
Three ways to stop changes to a PDF, what each one really blocks, and which to pick.

To lock a PDF from editing, give it a permissions (owner) password that blocks changes, or flatten it so form fields and comments become a fixed part of the page. If nobody without your approval should see the file at all, add a password to open it as well.
Each method blocks something different, and none of them makes a PDF impossible to copy. The table below shows what you actually get.
Three Ways to Lock a PDF From Editing
| Method | What it stops | What it doesn't stop |
|---|---|---|
| Permissions (owner) password | Editing, and optionally printing or copying, in readers that respect it | Software that ignores the restrictions |
| Flattening | Changing form fields, comments and stamps one by one | Editing the page in a full PDF editor |
| Password to open | Anyone without the password seeing the file | Anyone with the password, who can do everything |
For a contract or a filled form you send out, flatten it and set a permissions password. For a confidential file, the open password is what really protects it.
Lock a PDF From Editing With a Permissions Password in Preview (Mac)
Preview on a Mac sets both passwords for free. Apple's guide to password-protecting a PDF in Preview gives these steps:
- Open the PDF in Preview and choose File, then Export. Give the copy a new name to keep the original unlocked.
- Click Permissions.
- Leave the boxes for the actions you want to block unticked, such as changes or annotations.
- Under Owner Password, type a password and type it again.
- Click Apply, then Save.
To ask for a password to open the file too, tick Require Password To Open Document in the same window.
Lock a PDF From Editing in Adobe Acrobat

These are Adobe's steps for the Acrobat desktop app. For an open password in Acrobat, and what free Reader can't do, see our post on how to password protect a PDF in Acrobat.
- From the Tools menu, choose Protect a PDF, then Set Security Properties. The other way in is the Menu, then Protection, then Security properties.
- In the Security Methods list, choose Password Security.
- Under Permissions, choose None for changes to block all edits, or one of the limited options.
- Adobe's page stops there and doesn't show the password prompt, so follow what Acrobat asks, then save.
How to Keep a Form Fillable and Lock Everything Else
Use a permissions password that still allows form filling. Our Protect PDF can't: its code sets one password as both user and owner password, and when we ran a form through it in November 2026, qpdf listed every permission as allowed. Flattening doesn't fit either, since it ends the filling.
In Acrobat, pick "filling in form fields and signing existing signature fields" in step 3 above. Apple's Preview page names no form option. A free route is the command line tool qpdf, from its GitHub releases page (Windows, Mac and Linux builds):
1qpdf --encrypt --user-password= --owner-password=YOUR-PASSWORD --bits=256 --modify=form -- form.pdf locked.pdfWe ran it in the same month on Linux, on a generated form with one text field. It opens without a password, the field stayed in the file, and qpdf reports forms and document assembly as allowed, annotations and other changes as not allowed.
qpdf's manual defines this level as assembly plus filling in forms and signing, so someone can still reorder pages. Use --modify=none if nobody should fill it in. As with any permissions password, it only holds in readers that respect it.
Flatten a PDF Form So Fields Can't Be Changed
Flattening draws what every form field, comment, highlight and stamp shows into the page and removes the interactive layer, so nobody can retype a field or move a stamp anymore.
- Fill in the form first, for example with Fill Out PDF Form.
- Upload the filled PDF to Flatten PDF and click Flatten PDF.
- Download the flattened copy and keep the editable original somewhere safe.

Flattening can't be undone in the same file, which our guide to unflattening a PDF explains.
Add a Password to Open the PDF
Protect PDF encrypts the file with AES-256, and nothing opens without the password.

Know what it doesn't do: it sets the same password as user and owner password and adds no edit restrictions. Anyone you give the password to can change the file, as our guide to the PDF owner password and user password explains.
How Secure Is a Locked PDF?
Not very, if you rely on edit restrictions alone. Our guide to printing a secured PDF shows how to take a print restriction off with the owner password.
Treat a permissions password as a polite "please don't edit". For proof that nobody changed the file, keep your own original, or send it with a certificate-based digital signature from a program that supports one; any later change breaks it, as our guide to removing a PDF signature explains. More on this in our PDF security tools.
Frequently Asked Questions about Lock PDF From Editing
Can I lock a PDF from editing for free?
Yes. Preview on a Mac sets a permissions password for free, and our Flatten PDF tool fixes form fields in place without an account.
Can people still copy text from a locked PDF?
Readers that respect the setting block it unless you allowed copying. Others ignore it. Flattened text stays selectable.
Can I edit my own locked PDF later?
With a permissions password, yes: enter it in your editor to lift the limits. A flattened copy can't turn back into fields, so edit the original instead.
What if I forget the password?
There's no recovery for an open password, so store it in a password manager. Unlock PDF removes a password only when you know it.


