# Manage PDF Password

> `UiPath.PDF.Activities.PDF.ManagePDFPassword`

`UiPath.PDF.Activities.PDF.ManagePDFPassword`

## Description

Changes the password of a specified PDF file.

## Project compatibility

**Windows-Legacy | Windows**

## Configuration

#### Designer panel

* **FileName** - The path of the PDF file whose password you want to manage. This field supports only strings and `String` variables.
* **OutputFileName** - The path where you want to save the resulting PDF file with the new password. If a file exists at the specified path, it is overwritten. This field supports only strings and `String` variables.

#### Properties panel

**Common**
* **DisplayName** - The display name of the activity.

**File**
* **FileName** - The path of the PDF file whose password you want to manage. This field supports only strings and `String` variables.
* **NewOwnerPassword** - The new owner password you want to set for the specified PDF file, if necessary. This password is used for setting certain document restrictions. This field supports only strings and `String` variables.
* **NewUserPassword** - The new user password you want to set for the specified PDF file, if necessary. This password is required to open the document in **Read Only** mode. This field supports only strings and `String` variables.
  :::note
  * The **NewOwnerPassword** and **NewUserPassword** cannot coincide.
  * Changing or adding a User Password to a document already protected with an Owner Password requires inputting the Owner Password
  as well.
  * When the activity runs on an already protected document with the new password field empty, the existing password gets removed.
  :::
* **OldOwnerPassword** - The old password of the owner, used for modifying certain document restrictions. This field supports only strings and `String` variables.
* **OldUserPassword** - The old password of the user. This password is required to open the document in Read Only mode. This field supports only strings and `String` variables.
  :::note
  Recommended password length is of minimum six characters.
  :::
* **OutputFileName** - The path where you want to save the resulting PDF file with the new password. If a file exists at the specified path, it is overwritten. This field supports only strings and `String` variables.

**Misc**
* **Private** - If selected, the values of variables and arguments are no longer logged at Verbose level.
  :::note
  Visit [Securing PDFs with passwords](https://helpx.adobe.com/acrobat/using/securing-pdfs-passwords.html) for more information about securing PDFs with passwords.
  :::
