PDF permissions: what blocking print and copy really does

PDF permissions can block printing, copying and editing. What they protect, what they do not, and when to use them with an open password or an owner password only.

A protected PDF that can be opened but not printed or copied

The PDF Protect API can turn off printing, copying and editing. Before you rely on that, it helps to know exactly what a PDF permission is.

Two different protections

Encryption with an open password really protects the content. Without the password, the bytes cannot be decrypted. AES-256 is not broken in practice.

Permissions are flags inside an encrypted file that say what a reader app should allow: print, copy text, edit, fill forms. A reader that respects them greys out those buttons. But anyone who can open the file can, in principle, read its content, and tools exist that ignore the flags.

So permissions are a polite request that well-behaved software follows. They stop casual copying, accidental edits and a forwarded file being printed by mistake. They do not stop a determined person who already has the open password.

The options

curl https://api.justapi.tech/v1/pdf/protect \
  -H "Authorization: Bearer ak_live_..." \
  -H "Content-Type: application/json" \
  -d '{"source": {"url": "https://files.example.com/report.pdf"}, "options": {"password": "open-me", "owner_password": "a-different-secret", "allow_printing": true, "allow_copying": false, "allow_editing": false}}'
  • allow_printing: printing at any quality.
  • allow_copying: selecting and copying text and images. Screen readers are still allowed, so the file stays accessible.
  • allow_editing: changing pages, comments and form fields.

Set a separate owner_password. If it equals the open password, anyone who can open the file can also lift the restrictions.

Restrictions without an open password

You can also leave the document open to everyone and only restrict it. Readers will then open it without a prompt but disable printing or copying. This is common for published reports: free to read, not to edit. It is the weakest protection, because there is no secret needed to read the content.

When to use what

  • Private content (payslips, medical): open password, permissions optional.
  • Shared but not to be edited (signed-off quotes): open password plus allow_editing: false, and a separate owner password.
  • Real copy protection: no PDF setting gives you that. Watermark each copy with the recipient's name using the PDF Watermark API, so a leak can be traced.

The free PDF password tool offers the copy and print switches, so you can see how your reader treats them.