Reply to Re: PDF Output

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация