Manage PDF Password
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
Stringvariables. - 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
Stringvariables.
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
Stringvariables. - 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
Stringvariables. - 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
Stringvariables.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
Stringvariables. - 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
Stringvariables.noteRecommended 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
Stringvariables.
Misc
- Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
note
Visit Securing PDFs with passwords for more information about securing PDFs with passwords.