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

Parameters

File Content

The content of the input PDF document.

  • This field is Required
  • The type is File

Password

The password required to open the file.

  • This field is Required
  • The type is 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
  • You can use it as an input to other actions in your flow.

Examples

Protect a PDF document with a password in Power Automate