This feature is not working for me. RedactCertainPageRegionWIthRedactionAnnotation.
Your example does a search and replaces the word with annotation fine but the text does not get overlaid. As such, I hover over the annotation and it displays dynamically properly but once the mouse leaves we can see the original text.
I was under the impression that redaction should have a permanent replacement using