jeeva Posted March 13, 2007 Share Posted March 13, 2007 hi frnds, How can I download a pdf file using php? For that i have used following code. its ask to save or open the pdf file but while open that file its telling error like "adope reader could not open this file" and open without any content here my code header("Content-type: application/pdf"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Content-Disposition: attachment; filename=$fname.pdf"); readfile("location:Pdf/$fname.pdf"); can u please tell me wt i have to do? Quote Link to comment Share on other sites More sharing options...
only one Posted March 13, 2007 Share Posted March 13, 2007 hm, set the pdf in an iframe... <iframe name=pdf src=file.pdf>.... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.