pdf (25MB) – how to display and enable download?

If you’re using Apache, you can add something like this in your .htaccess file

AddType application/octet-stream .pdf

This will force everything with a .pdf extension to download instead of display in the browser.

If however you are not using Apache or if you want only certain files to download and others to display directly, you could use PHP to do this.

<?php
header("Content-disposition: attachment; filename=myfile.pdf");
header("Content-type: application/pdf");
readfile("myfile.pdf");

You could then link to this php file to download the PDF.