com.groupdocs.redaction.redactions

Class TextRedaction

    • Constructor Detail

      • TextRedaction

        protected TextRedaction(ReplacementOptions actionOptions)

        Initializes a new instance of TextRedaction class. This constructor requires ReplacementOptions as a parameter.

        Parameters:
        actionOptions - Text replacement options (exemption code or box color)
    • Method Detail

      • getActionOptions

        public final ReplacementOptions getActionOptions()

        Gets the ReplacementOptions instance, specifying type of text replacement.

        Returns:
        The ReplacementOptions instance, specifying type of text replacement.
      • getOcrConnector

        public final IOcrConnector getOcrConnector()

        Gets the IOcrConnector implementation, required to extract text from graphic content.

        Returns:
        The IOcrConnector implementation, required to extract text from graphic content.
      • setOcrConnector

        public final void setOcrConnector(IOcrConnector value)

        Sets the IOcrConnector implementation, required to extract text from graphic content.

        Parameters:
        value - The IOcrConnector implementation, required to extract text from graphic content.
      • processAsTextual

        protected final RedactorLogEntry processAsTextual(DocumentFormatInstance formatInstance,
                                        Pattern regex)

        This method applies a given Regular Expression to an instance of the doucument, if it implements ITextualFormatInstance interface and returns RedactionStatus.Skipped otherwise.

        Parameters:
        formatInstance - An instance of a document
        regex - Regular expression to search and replace
        Returns:
        Text replacement result