Protect PDF
Add a password to a PDF in your browser and download the locked copy. You choose the password. FiloPDF does not keep a copy of it or the file.
How to use this tool
- Add one PDF.
- Under Protection options, type a Password and the same text in Confirm password. The Protect PDF button stays disabled until the password has at least 4 characters and the two fields match.
- A mismatch shows Passwords do not match under the confirm field.
- Allow printing starts on. Allow copying text starts off. Modifying is not offered as an on switch.
- Choose Protect PDF. The progress label is Encrypting PDF. The download is named protected- plus the file name.
- The success toast says PDF password-protected, and its description says AES-256 when supported; otherwise RC4. Keep your password safe.
What the two toggles change
Allow printing and Allow copying text are the permissions passed into the encrypt call. Printing starts allowed. Copying starts disallowed. The encrypt options also set allowModifying to false. There is no third toggle for that. A recipient who can open the file may still be able to screenshot it. Encryption is not a leak-proof box.
The algorithm line in the toast is literal: AES-256 when supported; otherwise RC4. The code tries AES-256 and falls back to RC4 when WebCrypto is unavailable, which includes some non-secure contexts. Do not tell a recipient which algorithm they will see unless you have opened the file in their viewer.
Protect failed is the danger toast when the library throws. The page does not explain the throw. A file that is already encrypted can fail here. Save an open copy from a program that already accepted the old password, then protect that copy with the new password.