Protect a local PDF
abox_pdf_protectEncrypt a PDF with AES-256 or AES-128 using passwords read from local files, apply optional print/copy/change restrictions, and verify the output by reopening and decrypting it.
Instructions
Encrypt an unencrypted or blank-open-password PDF with revision 6 AES-256 (default) or revision 4 AES-128, using passwords read from local UTF-8 files. Optional print/copy/change permission flags are advisory and depend on the viewer. Reopens and decrypts the new PDF to verify its reachable object graph and page count. Passwords never enter tool arguments or results. No password guessing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| revision | No | ||
| input_path | Yes | Absolute local filesystem path. URLs and network shares are refused. | |
| output_path | Yes | Absolute local filesystem path. URLs and network shares are refused. | |
| restrict_copy | No | ||
| restrict_print | No | ||
| restrict_change | No | ||
| open_password_file | No | Absolute path to an exact UTF-8 password file; contents, BOM and final newline are not trimmed. Never put the password itself into arguments. | |
| owner_password_file | No | Absolute path to an exact UTF-8 password file; contents, BOM and final newline are not trimmed. Never put the password itself into arguments. |