Hi all,
I have got a PDF fle which i would like my users to download when they click on a button/link/image.Is this possible?
Thank You
Hi all,
I have got a PDF fle which i would like my users to download when they click on a button/link/image.Is this possible?
Thank You
If you want to override any plugins for viewing a PDF in browser, then you need to send an HTTP Content-Disposition header to state that it should be treated as an attachment.
The specifics of how you achieve this depend on the server side environment you are using. JavaScript can't help you (unless you are using a server side JavaScript implemention, which is unlikely).
I would simply configure IIS to server .pdf files as the MIME type application/octet-stream