<?php echo '<a href="FileLink" download="newfilename">Download the pdf</a>'; //It will work for all kind of file. ?>