04-02-2009, 10:01 AM
|
#18 (permalink)
|
|
The Frequenter
Join Date: Sep 2007
Location: Denmark
Posts: 352
Thanks: 8
|
Quote:
Originally Posted by CoryMathews
Have not tried this but something similar words for .doc try
header('Content-type: application/pdf');
header('Content-Disposition: attachment; filename="downloaded.pdf"');
readfile('original.pdf');
Not to sure on the last line.
http://corymathews.com/?p=287 shows how to save for .doc but changing the header files to the ones about should save a page as a .pdf. Then you don't need any third party crap.
|
What he wants is to generate a pdf on the fly, not send an already generated one to the user :)
__________________
|
|
|