PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.php > PDF Output
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
PDF Output

Réponse
 
LinkBack Outils de la discussion
Vieux 09/11/2007, 22h20   #1
Kevin Davis
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut PDF Output

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

  Réponse avec citation
Vieux 09/11/2007, 23h01   #2
Darko
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: PDF Output

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

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 13h28.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,14435 seconds with 10 queries