Docs

POST /v1/pdf/protect

Use POST /v1/pdf/protect to password-lock an existing PDF (AES-256 user password). To remove a password, use POST /v1/pdf/unlock.

Provide source (url or file) plus userPassword.

Fields

userPassword is required. ownerPassword is optional (defaults to userPassword).

Example

Protect a PDF from base64 input.

POST /v1/pdf/protect
{
  "file": "JVBERi0xLjc...",
  "userPassword": "secret"
}