On my web I want to have two buttons - first Download
that should download a pdf to the user's computer and another View
that opens pdf in a new tab. The thing is, I don't know how to make the Download
button. You might say that it is useless as you can save pdf after "viewing" it but I have already made graphics like that and don't really want to change it. Is it possible to prevent browser from opening the pdf file and make it download the file instead?