PDF Security

Protected PDF: Why You Can't Copy or Print It, and How to Unlock It

We tested five protected PDFs: open passwords vs print and copy restrictions, how to unlock each one properly, and when you're entitled to.

Protected PDF: Why You Can't Copy or Print It, and How to Unlock It

Your bank e-mails you a statement as a PDF, and when you try to open it, it asks for a password. Or an office sends you a certificate that opens fine, but the print button is greyed out and the text won't select. Then you try to upload the file to a job portal, or merge it with other documents into one application file, and it gets rejected because it's "protected". Most people assume this is all one kind of protection. In fact there are two completely different kinds, and each one is unlocked differently. We created five files with different types of protection and tested what happens to each. This article covers the results, how to tell which kind of protection your file has, and when you're actually entitled to remove it.

The short answer

If the file asks for a password when you open it, it's encrypted with an "open password", and only that password unlocks it: type it into Unlock PDF and you get a copy with no password. If it opens normally but blocks printing, copying or editing, it only carries "permission restrictions": leave the password box completely empty and the restrictions are removed. Either way, the text, fonts and images stay exactly as they were. And only unlock a file if it's yours or you're authorised to use it.

Two different locks on one file

The PDF standard allows two separate passwords, each with its own job:

"Asked" is the key word. In a restrictions-only file, the content is technically encrypted, but its key can be worked out without any password; otherwise nobody could open it. The restrictions themselves are just flags inside the file saying "don't allow printing", and each reader decides whether to honour them. Adobe Acrobat and most well-known programs do; some programs ignore them. A file can also combine the two: an open password, plus restrictions once it's open.

Open passwordRestrictions only
What you see when opening the fileA box asking for the passwordThe file opens normally
What's blockedReading the whole filePrinting, copying or editing, depending on what the owner chose
Is the content really protected?Yes, it's encrypted and unreadable without the passwordNo, it can be read; the blocking depends on the program
What you need to remove itThe open password itselfNothing: leave the password box empty
Typical useBank statements, payslips, medical recordsE-books, official forms, documents the publisher doesn't want edited

Our test: five files, five kinds of protection

We created a three-page fictional bank statement in the name of a made-up account holder, with an account number, monthly transactions and a balance, and filled in a title and the bank's name in the file properties. All of the data is made up. We then saved five protected copies using the encryption types you actually come across in real files, from the oldest to the newest, and tried three things with each: extracting the text with an ordinary program without a password, unlocking it with SmokePDF's Unlock PDF tool, and comparing the result with the original file.

FileEncryptionOpens without a password?Text extracted without a password?What we needed to unlock it
1. Open passwordAES-256 (newest)NoNo, not a single characterThe open password
2. Restrictions only (no printing, copying or editing)AES-128YesYes, all of itNothing, empty box
3. Open password + restrictionsAES-256NoNoThe open password
4. Restrictions only128-bit RC4 (older)YesYes, all of itNothing, empty box
5. Open password40-bit RC4 (oldest)NoNoThe open password

All five files were unlocked by the tool without having to rebuild the pages as images. Here's what the test taught us:

  1. Restrictions don't protect the content: with files 2 and 4, an ordinary text-extraction program pulled out all three pages, account number and balance included, without asking for any password, even though "copying" was forbidden in the file. From the files with an open password, not a single character came out.
  2. For a restricted file, leave the box empty: when we typed a random password into the tool to remove the restrictions from file 2, it showed "Incorrect password", even though the file doesn't need a password at all. That's because the tool tries the password exactly as typed. Leave the box empty, or type the permissions password if you know it: both worked.
  3. The error message tells you the kind of protection: with files 1, 3 and 5, an empty box gave "Please enter the password", and a wrong password gave "Incorrect password". So if the tool asks for a password while the box is empty, your file has an open password, not just restrictions.
  4. The content didn't change: we compared the text extracted from each unlocked copy with the original file's text, and it matched character for character in all five cases, with the same three pages and the same font, and the text stayed selectable and searchable.
  5. What changed was the file properties: the title and the bank's name disappeared from the properties of the unlocked copies, and the creation date became the date of unlocking. It doesn't affect the pages, but bear it in mind if someone relies on the file's creation date.

How to tell which kind of protection your file has

You don't need any special program; the symptoms are usually enough:

To be sure, open the file in Adobe Acrobat Reader, then go to File → Properties → Security. You'll see the security method, whether the file needs a password to open, and a list of what's allowed and what isn't.

Common situations, and what to do in each

SituationUsual protectionWhat to do
A bank or card statement sent by e-mailOpen passwordThe rule is usually given in the e-mail itself or in your account terms, such as part of your ID number or your date of birth. Open it with that, then unlock it if you need to upload it somewhere else.
A payslip or employment certificate from your employer's platformUsually an open passwordThe rule varies from platform to platform, and is usually given in the e-mail or the platform's help pages. If you can't find it, ask HR rather than trying random passwords.
An official form that opens but can't be editedPermission restrictionsYou probably only want to fill it in: try filling in the fields first, since many forms allow filling but block editing. If you need to merge it into an application file, remove the restrictions with an empty box.
An old file you protected yourselfWhichever you choseIf you remember the password, unlock it and keep an unlocked copy somewhere safe. If you've forgotten it, look for the original unprotected version.
A book or course you bought with no-print restrictionsPermission restrictionsThe restrictions are part of the terms of sale here. Read them, and if you need a printed copy, ask the publisher first.

When are you entitled to unlock a PDF, and when not?

The rule is simple: the protection was put there for a reason, and the question is whether it was meant to keep you out.

The Unlock PDF tool is built on that basis: it doesn't guess passwords or try combinations, and a file with an open password only opens with the correct one. If you've forgotten the password to your own file, the solution lies with whoever sent it, as we explain on the tool page.

After unlocking: three habits that keep your file safe

  1. Don't leave the unlocked copy lying around: a bank statement with no password can be read by anyone who gets hold of the file. Upload the unlocked copy where you need it, then delete it from your downloads folder and keep the protected original.
  2. Protect it again before e-mailing it: if you're sending the file on after merging or editing it, protect it again with Protect PDF, and send the password through a different channel, by text message or a call, not in the same e-mail as the file.
  3. Send only what the other side needs: if they need your name and balance but not your personal transactions, hide the rest before sending, as we explain in How to Redact a PDF. A password doesn't do the same job as redaction.

If you're the one protecting the file

The test result matters for people who send files too: if the content is confidential, don't rely on permission restrictions alone, because they don't stop anyone reading the text. Set an open password, and choose a strong one:

Frequently asked questions

Is it legal to unlock a PDF?

Unlocking your own file, or a file sent to you with its password for you to use, is perfectly normal, like opening a lock you hold the key to. Removing the protection from a file you have no right to use, or removing restrictions a publisher put on a book in order to share it, may breach the terms of use or copyright law. If you're not sure, ask whoever sent you the file.

I typed the right password into the tool and it says it's wrong. Why?

If the file opens for you without a password, it only has restrictions, and the tool tries the password exactly as you typed it: clear the box and try again. If it does ask for a password when opening, check upper and lower case and your keyboard layout, since a password typed on an Arabic or French layout instead of an English one produces completely different characters.

Does unlocking reduce the file's quality?

Not in normal cases. In our test, the text came out identical to the original, character for character, in all five files, and stayed selectable and searchable. The only exception is a file with unusual encryption that the library doesn't support: the tool then rebuilds its pages as images, and says so clearly in the result message.

Why does the merge tool reject my file when it opens normally?

Because it carries permission restrictions. The file opens for you, but it's encrypted inside, and SmokePDF's editing tools don't work on encrypted files. Open it first with the unlock tool, leaving the password box empty, then use the unlocked copy for merging, compressing and so on.

Are my password or file sent to the site's servers?

No. Decryption happens inside your browser, and neither the file nor its password leaves your device. What's downloaded from the internet when you press the button is the decryption library itself, not your file. We explain how this works in How In-Browser PDF Processing Works.

The takeaway

A "protected" PDF is either encrypted with an open password, which can't be read or opened without it, or restricted by permissions that block printing or copying without hiding the content. You unlock the first with its password and the second with an empty box, and in both cases the text stays as it was. Do it with your own files, or files sent to you for you to use, delete the unlocked copy when you've finished with it, and if you're the one protecting a file, choose a long open password, not a date of birth.

Abdelilah Barbach

Abdelilah Barbach

Founder & Technical Content Editor

Abdelilah Barbach is the founder of SmokePDF and builds its browser-based PDF tools. He writes practical guides on compressing, converting, merging and protecting PDF files, based on how the site's own tools work and on testing them with real documents. He writes in Arabic and English.