ComPDFKit Web SDK
    Preparing search index...

    Function setCustomApplyRedactionsHandler

    • Sets a handler that replaces the default redaction applying after Save is clicked in the redaction confirmation: handler(annotationsToRedact, originalApplyRedactions) (originalApplyRedactions() performs the default applying and returns a Promise). Cleanup waits for the Promise returned by the handler. Pass null to restore the default.

      Parameters

      Returns void

      instance.UI.setCustomApplyRedactionsHandler(async (annotationsToRedact, originalApplyRedactions) => {
      if (window.confirm(`Apply ${annotationsToRedact.length} redaction(s)?`))
      await originalApplyRedactions();
      });