Protect a PDF with passwords
POST/api/v1/tools/protect
Protect a PDF with user and/or owner passwords. Granular permissions mapping is limited by the underlying PDF library.
The referenced input must be a PDF. DOCX and other file types are rejected with a 400 error.
File lifecycle: The input file in the input bucket is deleted
after a successful operation.
Request
Responses
- 200
- 400
- 401
- 402
- 500
Protected PDF returned as binary response
Bad request
Unauthorized
Insufficient tokens
Internal server error