redact method

On this page

redact

Applies custom redaction to specific document content.

Currently, this is supported only for PDF PageAreaRedaction. Users can define their own redaction logic, such as AI-based redaction, which may be more advanced than simple pattern-based methods.

def redact(self, context):
    ...
Parameter Type Description
context CustomRedactionContext Contains the document content to be redacted along with related metadata.

Returns: CustomRedactionResult: Indicates whether the redaction should be applied and the modified content.

Aliases

These names call redact too, limited to the overloads listed.

Alias Accepts
redact_custom_redaction_context redact_custom_redaction_context(context)

See Also

On this page