The IOcrConnector implementation used to extract text from graphic content. (inherited from TextRedaction)
Example
fromgroupdocs.redactionimportRedactorfromgroupdocs.redaction.redactionsimportRegexRedaction,ReplacementOptionsfromgroupdocs.pydrawingimportColorwithRedactor("sample.pdf")asredactor:# replace with textredactor.apply(RegexRedaction(r"\d{2}\s*\d{2}[^\d]*\d{6}",ReplacementOptions("[removed]")))# replace with blue solid rectangleredactor.apply(RegexRedaction(r"^\d+[,\.]{1}\d+$",ReplacementOptions(Color.BLUE)))redactor.save()