Free Support Forum -

How to automatically download file when viewer loads


How can I automatically download the file when viewing

kind regards


Hello Divan,

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

$(function () {

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

Best regards.


thank you works 100%

Kind regards


Hi Divan,

Glad to hear.

Thank you.