Initializes a new instance of DeleteAnnotationRedaction class, with settings to delete all annotations (matching everything).
def__init__(self):...
Example
fromgroupdocs.redaction.redactionsimportDeleteAnnotationRedaction# Delete all annotationsdel_red=DeleteAnnotationRedaction()
init
Initializes a new instance of DeleteAnnotationRedaction class, deleting annotations matching given expression.
def__init__(self,pattern):...
Parameter
Type
Description
pattern
str
Regular expression.
Example
fromgroupdocs.redaction.redactionsimportDeleteAnnotationRedaction# Delete annotations containing the word "internal" (case‑insensitive)del_red=DeleteAnnotationRedaction(r"(?i)internal")
init
Initializes a new instance of DeleteAnnotationRedaction class, deleting annotations matching given expression.
def__init__(self,regex):...
Parameter
Type
Description
regex
System.Text.RegularExpressions.Regex
Regular expression.
Example
fromgroupdocs.redaction.redactionsimportDeleteAnnotationRedaction# Delete annotations whose content matches the regex (case‑insensitive)del_red=DeleteAnnotationRedaction("(?i)internal")