PDF Output

PDF Output

am 09.11.2007 23:20:27 von Kevin Davis

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

Re: PDF Output

am 10.11.2007 00:01:10 von darko

On Nov 9, 11:20 pm, Kevin Davis 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