Encrypt a PDF with a password: AES-256 protection with print/modify/copy permissions — password-protect a PDF in one call.
curl -X POST https://api.bigapi.dev/v1/pdf/protect -H 'Authorization: Bearer $KEY' -F 'file=@in.pdf' -F 'password=secret123' -o protected.pdf
New keys come with 100 free operations, no signup: curl -X POST https://api.bigapi.dev/v1/keys. Failed calls cost nothing.
| Name | Meaning |
|---|---|
file required | PDF to protect. |
password required | User password (min 4 chars). |
ownerPassword | Second password that lifts the restrictions below. If you leave it out, the user password grants full rights, so set a different one when allowPrint, allowModify or allowCopy matter. Default: same as password |
allowPrint | Whether people who open the PDF may print it. Default: true |
allowModify | Whether people who open the PDF may change it. Default: false |
allowCopy | Whether people who open the PDF may copy text and images out of it. Default: true |
Returns application/pdf. Response headers carry the cost (X-BigAPI-Cost) and notes about your input (X-BigAPI-Warnings).
Connect BiGapi as an MCP server: https://api.bigapi.dev/mcp (hosted) or npx -y @bigapi/mcp (local). Then ask in plain words; the agent finds pdf_protect on its own.