How can I tell if a PrizmDoc end user has clicked the download button?

Modified on Wed, Oct 30, 2024 at 3:47 PM

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

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article