[FPDF]Impossible de générer un pdf.

Impossible de générer un pdf. [FPDF] - PHP - Programmation

Marsh Posté le 05-05-2002 à 16:16:30    

Voila ce que j'ai fait :
 
<?php
require('fpdf.php';);
 
$pdf=new FPDF();
$pdf->Open();
$pdf->AddPage();
$pdf->SetFont('Arial','B',
16);
$pdf->Cell(40,10,'Hello World !';);
$pdf->Output();
?>  
 
mais il ne me retourne que cela:
 
%PDF-1.3 3 0 obj <> endobj 4 0 obj <> stream x?3Ò³06131S0B#ÇÂÄPÏÂR!9?ËHÁ?Ë@ÏH¡?Ë)DAßÍPÁTÏÌD!$MÁ5$bh¨ kh¦gfi¤?¢ á????¯?_??¢ ¨©?RsDendstream endobj 5 0 obj <> endobj 1 0 obj <> endobj 2 0 obj <> >> endobj 6 0 obj <> endobj 7 0 obj <> endobj xref 0 8 0000000000 65535 f 0000000351 00000 n 0000000438 00000 n 0000000009 00000 n 0000000087 00000 n 0000000250 00000 n 0000000526 00000 n 0000000600 00000 n trailer <> startxref 678 %%EOF  
 
 
Ou est l'erreur!!!


---------------
Donne un poisson à un homme il mangera une journée, Apprends lui à pêcher, il mangera toute sa vie...
Reply

Marsh Posté le 05-05-2002 à 16:16:30   

Reply

Marsh Posté le 07-05-2002 à 10:18:47    

haaa mon boulet chéri :)
 
je plaisante
 
tu dois faire l'équivalent de response.setContentType(XX) et pour XX tu mets le mimetype du pdf
enfin je crois
et je sais pu comment on fait ça en php
 
(quoi, c moi le boulet?)


---------------
\^o^/ Libérez HotShot \^o^/
Reply

Marsh Posté le 07-05-2002 à 22:32:44    

[:yoyoz]


---------------
Donne un poisson à un homme il mangera une journée, Apprends lui à pêcher, il mangera toute sa vie...
Reply

Marsh Posté le 08-05-2002 à 11:43:04    

simoes a écrit a écrit :

[:yoyoz]  




 
dis donc, mon ami-boulay, elle t'as pas suffit ma reponse?
cherche dans la doc php qqchose comme "content type"


---------------
\^o^/ Libérez HotShot \^o^/
Reply

Marsh Posté le 09-05-2002 à 20:28:39    

Non sa me duffit pas!!!
 
J'ai rien trouver!


---------------
Donne un poisson à un homme il mangera une journée, Apprends lui à pêcher, il mangera toute sa vie...
Reply

Marsh Posté le 10-05-2002 à 09:58:47    

simoes a écrit a écrit :

Non sa me duffit pas!!!
 
J'ai rien trouver!  




 
http://www.php.net/manual/fr/ref.pdf.php
 
et sinon ce dont je te parlais, tu met ça au debut de la generation de ton pdf:
 
header("Content-type: application/pdf" );
 
 :love: boulay chéri  :love:


---------------
\^o^/ Libérez HotShot \^o^/
Reply

Marsh Posté le 11-05-2002 à 13:25:36    

Merci quand meme!! Sa marche now!!


---------------
Donne un poisson à un homme il mangera une journée, Apprends lui à pêcher, il mangera toute sa vie...
Reply

Marsh Posté le 13-05-2002 à 11:50:51    

simoes a écrit a écrit :

Merci quand meme!! Sa marche now!!  




tu m'etonnes


---------------
\^o^/ Libérez HotShot \^o^/
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed