com.groupdocs.redaction

Interface IAnnotatedDocument



  • public interface IAnnotatedDocument

    Provides access to annotations, such as comments. Needs to be implemented by DocumentFormatInstance-derived class to perform annotation redactions

    • Method Detail

      • redactAnnotation

        RedactionResult redactAnnotation(Pattern regularExpression,
                                       String replacement)

        Replaces matching text in all annotations within document

        Parameters:
        regularExpression - Regular expression to search and replace
        replacement - Textual replacement
        Returns:
        Replacement result
      • deleteAnnotations

        RedactionResult deleteAnnotations(Pattern regularExpression)

        Deletes all annotations, matching regular experssion within document

        Parameters:
        regularExpression - Regular expression to match
        Returns:
        Deletion result