Jump to content
Larry Ullman's Book Forums
Sign in to follow this  
capecodheaven

View_Pdf.php Printing Garbage

Recommended Posts

For some reason when I select a pdf to view it comes up all garbage...i'd paste what comes up but for some strange reason I can't paste the jibberish here...I even tried using Larry's script and it came up with garbage...has anyone had an issue with this???..Thanks...Tom

Share this post


Link to post
Share on other sites

Seems like you are outputting something before you serve the pdf. Because of that, the headers for the PDF file doesn't get taken into account. Remove any echo statements before serving the pdf, and all should be good.

Share this post


Link to post
Share on other sites

Hi Antonio:

I did what you suggested and it worked when I use Mozilla Firefox...but it does not work using IE and I have Windows 8.1 installed...lol.

Any ideas why it does not work on IE????...thanks for all your help

Share this post


Link to post
Share on other sites

Because IE is shit...

 

On the more serious side, that sounds more like an header issue. I know IE can be a bit weird about headers, so that is nothing new. I experienced the same kind of problem you got a couple of weeks ago. You can find some info here: http://stackoverflow.com/questions/1218925/php-script-to-download-file-not-working-in-ie

 

If that doesn't work, keep searching Stack Overflow. I used the google term "pdf download php internet explorer".

 

Good luck and merry Christmas to you guys. :)

  • Upvote 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...