Skip to main content

Password-protect a PDF

POST 

/pdf/protect

Encrypts a PDF with AES-256 into a new render (0.5 units on live keys; Starter plan and above). user_password is needed to open the document; without it anyone can open it, but the permissions still apply. permissions lists what readers may do: an empty list forbids all four, and leaving it out allows all four. Send at least one of user_password, owner_password and permissions (400 invalid_request otherwise). A source that is encrypted already answers 422 source_encrypted. Protect last: an encrypted PDF cannot be merged or watermarked afterwards. Needs render:create.

Request​

Responses​

Protected render.