In order to reject specific changes during Redaction process or to keep a full log of changes in the Document, you need to pass a callback implementing IRedactionCallback into RedactorSettings. The interface contains only one method, acceptRedaction, which receives detailed information about the proposed Redaction and returns a Boolean value — accepted or not.
Below, we create a callback with java.newProxy, dumping changes to the console:
const Redaction = require('@groupdocs/groupdocs.Redaction'); const java = require('java'); const callback = java....Redaction Product Solution GroupDocs...Acquisition GroupDocs Documentation / GroupDocs.Redaction Product Family...