I'd like my application to be aware of end users clicking the Download button, but the API doesn't provide an event. There's an event for the Print button, but not the Download button. Is there a way to do this?


A workaround for this is to access the Download button element directly, and subscribe to its 'click' event, like so:


$('#viewer1').find('[data-pcc-download]').on('click', function () { console.log('download button clicked!'); });


If you'd like to also keep tabs on the conversion that is triggered by clicking the download button, you can use the events (ConversionCompleted, ConversionProgress, ConversionFailed) of the ConversionRequest that is returned when calling PCCViewer.ViewerControl.requestDocumentConversion().


Documentation here: https://help.accusoft.com/PrizmDoc/latest/HTML/PCCViewer.ConversionRequest.html