Protect PDF With Password
protect_pdfEncrypt a PDF with AES-256 and a password so it requires a password to open and optionally blocks printing or copying, then saves the protected file.
Instructions
Encrypts a PDF (AES-256) so that it asks for a password to open, and optionally forbids printing or copying. The file is uploaded to conv2pdf and the call counts as one conversion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| password | Yes | Password needed to open the PDF, 6 to 64 characters. | |
| input_path | Yes | Path of the file on this computer: absolute, or relative to the working directory of the server. | |
| output_path | No | Where to write the result. Optional: by default next to the input file, under a name that is not taken. An existing file is never overwritten. | |
| prevent_copy | No | Forbid copying text. Default: false. | |
| prevent_print | No | Forbid printing. Default: false. |