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: https://docs.groupdocs.com/redaction/net/redaction-basics/
- More details about document annotation redactions: https://docs.groupdocs.com/redaction/net/annotation-redactions/
The AnnotationRedaction type exposes the following members:
| Constructor | Description |
|---|---|
| init | Initializes a new AnnotationRedaction with a regex pattern and replacement text. |
| init | Initializes a new instance of AnnotationRedaction. |
| Method | Description |
|---|---|
| apply_to | Applies the redaction to a given format instance. |
| apply_to_document_format_instance |
| 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. |
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.