# Encrypt File

Protects PDF files with a password.


---

### :arrow_left:**INPUT**

| **Parameter** | **Type** | **Required** | **Description** |
|-----------|------|----------|-------------|
| `FilePath` | `String` | ✅Yes     | Path of the PDF file to encrypt *(OverloadGroup: "File Path")* |
| `Data`    | `Byte[]` | ✅Yes     | PDF to encrypt (byte array) *(OverloadGroup: "Data")* |
| `Password` | `SecureString` | ✅Yes     | Encryption password **(Required)** |
| `OutputFilePath` | `String` | ❌No      | Output file path |


---

### :arrow_right:**OUTPUT**

| **Parameter** | **Type** | **Description** |
|-----------|------|-------------|
| `IsEncryptFileSuccessful` | `Boolean` | Success status |
| `EncryptFileMessage` | `String` | Operation message / error detail |
| `EncryptFileResult` | `Byte[]` | Encrypted PDF (byte array) |


---

### :arrow_down:**MISC**

| **Parameter** | **Type** | **Default** | **Description** |
|-----------|------|---------|-------------|
| `ThrowException` | `Boolean` | ❌No     | Throw exception on error |