checkWriteProtection

checkWriteProtection(String password) method

Checks whether a password to modify is correct for a write protected presentation.

Parameters

NameTypeDescription
passwordStringThe password to check. 1. You should check the ( #isWriteProtected) property before calling this method. 2. When password is null or empty, this method returns false.

Returns

boolean

Exception

ExceptionCondition
InvalidOperationExceptionIf a presentation is protected by a password to open or format does not support write protection