com.groupdocs.redaction.integration

Interface IAnnotatedDocument



  • public interface IAnnotatedDocument

    Defines methods that are required for access to annotations, such as comments. Needs to be implemented by DocumentFormatInstance-derived class to perform annotation redactions.


    Learn more

    • Method Detail

      • redactAnnotation

        RedactionResult redactAnnotation(Pattern regularExpression,
                                       String replacement)

        Replaces the matching text in all annotations within the 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 expression within the document.

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