Encrypt File

Protects PDF files with a password.


⬅️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


➡️OUTPUT

Parameter

Type

Description

IsEncryptFileSuccessful

Boolean

Success status

EncryptFileMessage

String

Operation message / error detail

EncryptFileResult

Byte[]

Encrypted PDF (byte array)


⬇️MISC

Parameter

Type

Default

Description

ThrowException

Boolean

❌No

Throw exception on error