Password-protect a PDF with AES-256 encryption; control print/modify/copy permissions.
| Name | Type | Description |
|---|---|---|
file | file · required | PDF to protect. |
password | string · required | User password (min 4 chars). |
ownerPassword | string · optional | |
allowPrint | boolean · optional | Default true. |
allowModify | boolean · optional | Default false. |
allowCopy | boolean · optional | Default true. |
curl -X POST https://api.bigapi.dev/v1/pdf/protect -H 'Authorization: Bearer $KEY' -F 'file=@in.pdf' -F 'password=secret123' -o protected.pdf
HTTP/1.1 200 OK Content-Type: application/pdf X-BigAPI-Cost: 1 (encrypted PDF body)