Since most present day programs show PDF and media documents inline, utilize the PHP programming language — which enables you to change the HTTP headers of records that you’re composing — to compel the program to download instead of showcase a given record type.
The most effective method to Use PHP to Force a File to Download
This procedure requires two separate advances. In the first place, you’ll make a PHP record that administers the document you wish to secure, and after that you’ll add a reference to that PHP record inside the HTML of the page in which it shows up.
For getting more information visit here : office 2019 activate product key
After you transfer a record to the server, make a PHP report in a word processor. On the off chance that, for instance, you wish to drive sample.pdf to download rather than to show inline, make a content this way:
header(“Content-manner: connection; filename=sample.pdf”);
There ought to be no spaces or carriage returns anyplace in the document (aside from after a semi-colon). Clear lines will cause PHP to default to the MIME kind of content/html and your record won’t download.
Spare the PHP record to a similar area as your HTML pages. At that point alter the page’s connect to the PDF as pursues:
<a href=”sample.php”>Download the PDF</a>
Two significant contemplations administer this method. To begin with, on the off chance that somebody found the immediate connect to the PDF record, the person in question can get to it straightforwardly without the PHP acting as a burden. Second, you’ll need PHP security for each record you wish to ensure utilizing this brisk and-simple methodology. To secure a few records as such, it bodes well to name the ensured document and the PHP document with a similar name, varying just in the expansion, to keep everything straight.