|
Posted by Darko on 11/09/07 23:01
On Nov 9, 11:20 pm, Kevin Davis <kevin.da...@kevincdavis.net> wrote:
> Hello,
>
> 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: ");
>
> Thanks!
> Kevin Davis
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.
Bye
Navigation:
[Reply to this message]
|