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 AnnotationRedaction with a regex pattern and replacement text.
init Initializes a new instance of AnnotationRedaction.

Methods

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

Properties

Property Description
description The description of the redaction, describing the redaction and its parameters.
expression The regular expression to match.
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