PDF Output

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I'm seem to be having some problems with sending output to PDF. The
error message is that I'm getting is the following:

Adobe Reader could not open *****.pdf because it is either not a
supported file type or because the file has been damaged.

What I'm using for to send output to pdf is the following:
header("Content-Type: application/pdf");
header("Content-disposition: attachment; filename=reports.pdf");
header("Cache-Control: ");

Kevin Davis

Re: PDF Output

Quoted text here. Click to load it

If you get error report that says "Adobe reader", then I suppose
content-type etc.
isn't the problem, since it's recognized ok. You've probably screwed
your pdf output.
Save the output to a file, and try to open it locally to make sure.


Site Timeline