Add a password to a PDF
Encrypt a PDF in a Power Automate flow so it cannot be opened without a password, with a choice of AES-128 or AES-256 encryption.
Use this action to encrypt and protect a PDF document with a password to prevent unauthorized access.
Parameters
File ContentFilerequiredThe content of the input PDF document.
PasswordStringrequiredThe password required to open the file. The length is between 4 and 32 characters. The characters in the password must be in the ASCII printable range (between positions 32 and 126). This range includes lowercase and uppercase letters, numbers, space, and some commonly used symbols like . , : ; # $ % & ( ) * + = ? !
Encryption AlgorithmStringdefault:AES-128The algorithm used to encrypt the PDF document. This field is optional. Valid values are AES-128 and AES-256.
Response
Password Protected PDF File ContentFileThe content of the password protected PDF document. You can use it as an input to other actions in your flow.