MetadataRedaction

Inheritance: java.lang.Object, com.groupdocs.redaction.Redaction

public abstract class MetadataRedaction extends Redaction

Represents a base abstract class for document metadata redactions.


Learn more

Methods

Method Description
getFilter() Gets the filter, which is used to select all or specific metadata, for example Author or Company.
setFilter(int value) Sets the filter, which is used to select all or specific metadata, for example Author or Company.
applyTo(DocumentFormatInstance formatInstance) Applies the redaction to a given format instance.

getFilter()

public final int getFilter()

Gets the filter, which is used to select all or specific metadata, for example Author or Company.

Returns: int - The filter, which is used to select all or specific metadata, for example Author or Company.

setFilter(int value)

public final void setFilter(int value)

Sets the filter, which is used to select all or specific metadata, for example Author or Company.

Parameters:

Parameter Type Description
value int The filter, which is used to select all or specific metadata, for example Author or Company.

applyTo(DocumentFormatInstance formatInstance)

public RedactorLogEntry applyTo(DocumentFormatInstance formatInstance)

Applies the redaction to a given format instance.

Parameters:

Parameter Type Description
formatInstance DocumentFormatInstance An instance of a document to apply redaction

Returns: RedactorLogEntry - Status of the redaction: success/failure and error message if any