| Package | Description |
|---|---|
| org.docx4j.openpackaging.packages | |
| org.docx4j.openpackaging.parts.WordprocessingML | |
| org.docx4j.wml |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ProtectDocument.isRestrictEditingWith(STDocProtect editValue)
Verifies the documentProtection tag inside settings.xml file
if the protection is enforced (w:enforcement="1")
and if the kind of protection equals to passed (STDocProtect.Enum editValue)
|
void |
ProtectDocument.restrictEditing(STDocProtect editValue)
Enforces the protection with the option specified by passed editValue.
In the documentProtection tag inside settings.xml file it sets the value of enforcement to "1" (w:enforcement="1") and the value of edit to the passed editValue (w:edit="[passed editValue]") sample snippet from settings.xml |
void |
ProtectDocument.restrictEditing(STDocProtect editValue,
String password)
Enforces the protection with the option specified by passed editValue and password,
using rsaFull (sha1) (like Word 2010).
|
void |
ProtectDocument.restrictEditing(STDocProtect editValue,
String password,
HashAlgorithm hashAlgo)
Enforces the protection with the option specified by passed editValue, password, and
HashAlgorithm for the password.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
DocumentSettingsPart.isRestrictEditingWith(STDocProtect editValue)
Verifies the documentProtection tag inside settings.xml file
if the protection is enforced (w:enforcement="1")
and if the kind of protection equals to passed (STDocProtect.Enum editValue)
|
void |
DocumentSettingsPart.protectRestrictEditing(STDocProtect editValue,
String password,
HashAlgorithm hashAlgo)
Enforces the protection with the option specified by passed editValue, password, and
HashAlgorithm for the password.
|
| Modifier and Type | Field and Description |
|---|---|
protected STDocProtect |
CTDocProtect.edit |
| Modifier and Type | Method and Description |
|---|---|
static STDocProtect |
STDocProtect.fromValue(String v) |
STDocProtect |
CTDocProtect.getEdit()
Gets the value of the edit property.
|
static STDocProtect |
STDocProtect.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static STDocProtect[] |
STDocProtect.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CTDocProtect.setEdit(STDocProtect value)
Sets the value of the edit property.
|
Copyright © 2007-2018. All Rights Reserved.