in reply to Redirect to PDF file

Did anything show up in its place? (e.g. usual MIME-type gobbledygook)

One possibility is that you need to reset the header to application/x-pdf (you're not sending text/plain headers first are you?).

Again, code would help.