AnnotationRedaction class

AnnotationRedaction class

Represents a redaction that replaces annotation text (comments, etc.) matching a given regular expression.

Learn more

The AnnotationRedaction type exposes the following members:

Constructors

Constructor Description
init Initializes a new instance of AnnotationRedaction.
init Initializes a new AnnotationRedaction instance.

Methods

Method Description
apply_to Applies the redaction to a given format instance.

Properties

Property Description
description The description of the redaction, containing the redaction name and parameters.
expression The regular expression to match as a string.
replacement The textual replacement for matched text.

Example

from groupdocs.redaction import Redactor
from groupdocs.redaction.redactions import AnnotationRedaction

with Redactor("document.pdf") as redactor:
    redactor.apply(AnnotationRedaction("(?i)approved", "[REVIEW]"))
    redactor.save()

Guides

Task guides that use AnnotationRedaction:

See Also