PresentationInfo

PresentationInfo class

Information about presentation file

checkPassword

NameDescription
checkPassword (String)Checks whether a password is correct for a presentation protected with open password.

Parameters:

NameTypeDescription
passwordStringThe password to check. When the password is null or empty, this function returns false.

Returns: boolean

Error

ErrorCondition
NotSupportedExceptionif format is not supported to check passwords.

checkWriteProtection

NameDescription
checkWriteProtection (String)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 function. 2. When password is null or empty, this function returns false.

Returns: boolean

Error

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

getLoadFormat

NameDescription
getLoadFormat ()Gets format of the binded presentation. Read-only LoadFormat.

Returns: int


isEncrypted

NameDescription
isEncrypted ()Gets True if binded presentation is encrypted, otherwise False. Read-only boolean.

Returns: boolean


isPasswordProtected

NameDescription
isPasswordProtected ()Gets a value that indicates whether a binded presentation is protected by a password to open.

Returns: boolean


isWriteProtected

NameDescription
isWriteProtected ()Gets a value that indicates whether a binded presentation is write protected. If the presentation is protected by a password to open, the property value equals NotDefined.

Returns: byte


readDocumentProperties

NameDescription
readDocumentProperties ()Gets document properties of binded presentation.

Returns: DocumentProperties


updateDocumentProperties

NameDescription
updateDocumentProperties (DocumentProperties)Updates properties of binded presentation.

writeBindedPresentationToStream

NameDescription
writeBindedPresentationToStream (PresentationInfo, WriteStream)Writes binded presentation to stream.

Parameters:

NameTypeDescription
presentationinfoPresentationInfolink to self
streamWriteStreamThe stream must be seekable and writable.

writeBindedPresentation

NameDescription
writeBindedPresentation (String)Writes binded presentation to file.

Parameters:

NameTypeDescription
fileStringPresentation file.