AnnotationRedaction class
Leave feedback
On this page
Represents a redaction that replaces annotation text (comments, etc.) matching a given regular expression.
Learn more
- More details about applying redactions: Redaction basics
- More details about document annotation redactions: Annotation redactions
The AnnotationRedaction type exposes the following members:
| Constructor | Description |
|---|---|
| init | Initializes a new instance of AnnotationRedaction. |
| init | Initializes a new AnnotationRedaction instance. |
| Method | Description |
|---|---|
| apply_to | Applies the redaction to a given format instance. |
| 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. |
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()
Task guides that use AnnotationRedaction:
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.