Add a password to a PDF
protect_pdfAdd a password to a PDF. Encrypts the PDF so it asks for the password when opened. The PDF must not be protected already.
Costs 1 credit per call.
Returns a temporary download link (valid 15 minutes). Always include that link in your reply so the user can open or download the file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The PDF, base64-encoded. | |
| password | Yes | The password that will be required to open the PDF. |