com.groupdocs.redaction.redactions

Class EraseMetadataRedaction



  • public class EraseMetadataRedaction
    extends MetadataRedaction

    Represents a metadata redaction that erases all metadata or metadata matching specific MetadataFilters from the document.


    <b>Learn more</b>
    • Constructor Detail

      • EraseMetadataRedaction

        public EraseMetadataRedaction()

        Initializes a new instance of EraseMetadataRedaction class, erasing all metadata.

      • EraseMetadataRedaction

        public EraseMetadataRedaction(int filter)

        Initializes a new instance of EraseMetadataRedaction class, erasing metadata, matching specific combination of MetadataFilters.

        Parameters:
        filter - Filter for metadata to erase
    • Method Detail

      • getDescription

        public String getDescription()

        Returns a string, describing the redaction and its parameters.

        Overrides:
        getDescription in class Redaction
        Returns:
        Text, containing redaction name and parameters.
      • isApplicableTo

        protected boolean isApplicableTo(MetadataItem item)

        Checks if this redaction could be applied to a given metadata item.

        Specified by:
        isApplicableTo in class MetadataRedaction
        Parameters:
        item - Metadata item
        Returns:
        True if redaction can be applied