GroupDocs.Merger allows to update password from password-protected document. The resultant document will have new password. Here are the steps to update document password:
Initialize LoadOptions class specifying current password;
Instantiate Merger object with source document path or stream and pass LoadOptions object to it;