How to automatically download file when viewer loads

How can I automatically download the file when viewing


kind regards
Divan

Hello Divan,


Thank you for the request. Yes, you can download document when viewing. Simply add such JavaScript code:

$(function () {
$(“#test”).groupdocsViewer(“downloadDocument”);
})

This code will download the document when the page is loaded.

Best regards.

thank you works 100%


Kind regards
Divan

Hi Divan,


Glad to hear.

Thank you.