public final class WordProcessingInspectionPackage extends CustomPackage
Contains information about document parts that can be considered as metadata in some cases.
Learn more
Modifier and Type | Method and Description |
---|---|
void |
acceptAllRevisions()
Accepts all detected revisions in the document.
|
void |
clearComments()
Removes all detected user comments from the document.
|
void |
clearFields()
Removes all detected fields from the document.
|
void |
clearHiddenText()
Removes all hidden text fragments from the document.
|
WordProcessingComment[] |
getComments()
Gets an array of the user comments.
|
DigitalSignature[] |
getDigitalSignatures()
Gets an array of digital signatures presented in the document.
|
WordProcessingField[] |
getFields()
Gets an array of document fields.
|
String[] |
getHiddenText()
Gets an array of hidden text fragments extracted from the document.
|
WordProcessingRevision[] |
getRevisions()
Gets an array of digital signatures presented in the document.
|
void |
rejectAllRevisions()
Rejects all detected revisions in the document.
|
int |
removeProperties(Specification specification)
Removes metadata properties satisfying a specification.
|
int |
sanitize()
Removes writable metadata properties from the package.
|
addProperties, contains, findProperties, get_Item, getCount, getKeys, getKnowPropertyDescriptors, getMetadataType, getPropertyDescriptors, iterator, setProperties, updateProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public final WordProcessingComment[] getComments()
Gets an array of the user comments.
public final WordProcessingField[] getFields()
Gets an array of document fields.
public final String[] getHiddenText()
Gets an array of hidden text fragments extracted from the document.
public final DigitalSignature[] getDigitalSignatures()
Gets an array of digital signatures presented in the document.
public final WordProcessingRevision[] getRevisions()
Gets an array of digital signatures presented in the document.
public int removeProperties(Specification specification)
Removes metadata properties satisfying a specification.
removeProperties
in class MetadataPackage
specification
- A specification to test each metadata property for a condition.public final void clearComments()
Removes all detected user comments from the document.
public final void clearFields()
Removes all detected fields from the document.
public final void clearHiddenText()
Removes all hidden text fragments from the document.
public final void acceptAllRevisions()
Accepts all detected revisions in the document.
public final void rejectAllRevisions()
Rejects all detected revisions in the document.
public int sanitize()
Removes writable metadata properties from the package. The operation is recursive so it affects all nested packages as well.
sanitize
in class MetadataPackage