Add a password to a PDF document

Use this action to encrypt and protect a PDF document with a password to prevent unauthorized access.

Add a password to a PDF document in Power Automate

Parameters

File Content

The content of the input PDF document.

  • This field is Required Required
  • The type is File File

Password

The password required to open the file.

  • This field is Required Required
  • The type is String String
  • 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 . , : ; # $ % & ( ) * + = ? !

Response

Password Protected PDF File Content

The content of the password protected PDF document.

  • The type is File File
  • You can use it as an input to other actions in your flow.