<?php
// Change the header to allow PDF download
header('Content-type: application/pdf');
// The downloaded file will be called as savethis.pdf
header('Content-Disposition: attachment; filename="savethis.pdf"');
// The source PDF to be downloaded is source.pdf
readfile('source.pdf');
?>
No comments:
Post a Comment