Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. <?php
  2. // outputting a PDF file
  3. header('Content-type: application/pdf');
  4. // It will be called downloaded.pdf
  5. header('Content-Disposition: attachment; filename="downloaded.pdf"');
  6. // The PDF source is in original.pdf
  7. readfile('original.pdf');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement