public final class WordProcessingProtection extends Object
Encapsulates document protection options for the WordProcessing document, which is generated from HTML
| Constructor and Description |
|---|
WordProcessingProtection()
Parameterless constructor - all parameters have default values
|
WordProcessingProtection(int protectionType,
String password)
Allows to set all parameters during class instantiation
|
| Modifier and Type | Method and Description |
|---|---|
static int |
convertToAsposeWords(int protectionType) |
String |
getPassword()
The password to protect the document with.
|
int |
getProtectionType()
Allows to set a protection type of the document.
|
void |
setPassword(String value)
The password to protect the document with.
|
void |
setProtectionType(int value)
Allows to set a protection type of the document.
|
public WordProcessingProtection()
Parameterless constructor - all parameters have default values
public WordProcessingProtection(int protectionType,
String password)
Allows to set all parameters during class instantiation
protectionType - Set the protection type of the documentpassword - Set the protection passwordpublic static int convertToAsposeWords(int protectionType)
public final String getPassword()
The password to protect the document with. If null or empty string - the protection will not be applied to the document.
public final int getProtectionType()
Allows to set a protection type of the document. By default is set to not protect the document at all.
public final void setPassword(String value)
The password to protect the document with. If null or empty string - the protection will not be applied to the document.
public final void setProtectionType(int value)
Allows to set a protection type of the document. By default is set to not protect the document at all.
Copyright © 2024. All rights reserved.