Automated PDF Redaction

Q:

Using the redaction add-on (http://www.pdftron.com/pdfnet/samplecode.html#PDFRedact) is there a way to show/hide redacted content based on a function call (e.g. so users with certain permissions in our application could see this content, specifically in the web viewer)?

Can content be redacted through code using a simple text search, say we know an SSN in our documents, can we search our documents for that SSN and redact them without needing the user to do it manually, short of image based documents that aren’t indexed?