How to use Protect PDF

  1. Click the "Input PDF" box or drag a PDF file onto it.
  2. Under "Password Settings", type a password in the "Password" field.
  3. Type the same password in the "Confirm Password" field.
  4. When the file appears under "Protected PDF", click "Download" to save it.

Examples

Lock a contract

contract.pdf with the same password typed in both fields -> contract-protected.pdf, which requires that password to open.

Good to know

  • The PDF is rewritten by Ghostscript's pdfwrite device (WebAssembly, in a Web Worker) with PDF 1.4 compatibility, using your password as both the user (open) password and the owner password.
  • Both fields must match and cannot be empty; otherwise the tool shows "Passwords do not match" or "Password cannot be empty".
  • If you edit the password after a file was produced, the previous result stays in place until both fields match again.
  • A file name containing a lowercase .pdf gets -protected.pdf (report.pdf becomes report-protected.pdf); other names, such as SCAN.PDF, get no suffix.
  • The Ghostscript WebAssembly binary is requested from cdn-wasm.b-cdn.net when processing starts; the PDF and password are passed to the worker locally, and the worker makes no other network request.

Frequently asked questions

Can I set separate open and owner passwords or choose permissions?

No. The one password you enter is used as both the user password and the owner password, and the tool has no permission settings to choose.

Why is no protected PDF produced?

The Password and Confirm Password fields must contain the same, non-empty value. While they differ or are empty, the tool shows an error message and does not create a new file; an earlier result, if any, is not replaced until they match.

Does the tool download anything?

Yes. Each run starts a Web Worker that fetches the Ghostscript WebAssembly binary from cdn-wasm.b-cdn.net. The PDF is read from a local blob URL and encrypted inside that worker.

More PDF Tools