Best way to download a pdf
Best way to download a pdf
Out of context: Reply #2
- Started
- Last post
- 11 Responses
- acescence0
use a php script...
<?php
// We'll be outputting a PDF
header('Content-type: application/pdf');// It will be called downloaded.pdf
header('Content-Disposition: attachment; filename="downloaded.pdf"');// The PDF source is in original.pdf
readfile('original.pdf');
?>