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.

See Also

On this page