Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // outputting a PDF file
- 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');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement