I use the exportBegin event to prevent the default export logic. However, when I do that, the default viewer notification remains, and I have to hide it manually:
exportBegin: function (e, args) {
args.handled = true; // Set to true to cancel the default export behavior.
//...
$(".trv-notification").hide()
},