com_save_with_password
Save a Word document as an encrypted copy protected by a password. Uses real AES encryption to require a password for opening, with option to overwrite the original or create a new encrypted file.
Instructions
Save an ENCRYPTED copy requiring a password to open (real AES encryption applied by Word, unlike document protection which is an editing restriction). output_path defaults to the same file; a different path saves a new encrypted copy. Requires Word installed; opens an invisible instance to apply the encryption.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| password | Yes | ||
| file_path | Yes | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||