Aspose::Pdf::Facades::PdfFileSecurity::TrySetPrivilege method

PdfFileSecurity::TrySetPrivilege method

Sets Pdf file security with original password. Does not throw an exception if process failed.

bool Aspose::Pdf::Facades::PdfFileSecurity::TrySetPrivilege(const System::String &userPassword, const System::String &ownerPassword, const System::SharedPtr<DocumentPrivilege> &privilege)
ParameterTypeDescription
userPasswordconst System::String&Original user password.
ownerPasswordconst System::String&Original owner password.
privilegeconst System::SharedPtr<DocumentPrivilege>&Set privilege.

ReturnValue

True for success, or false.

See Also