Précédent   Forum des professionnels en informatique > PHP > Bibliothèques et frameworks > PDF > phpToPDF
phpToPDF Forum d'entraide pour la classe phpToPDF permettant de générer des documents PDF en PHP. Avant de poster -> tutoriels EZPDF
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 03/04/2007, 17h57   #1
Membre du Club
 
Inscription : mars 2007
Messages : 123
Détails du profil
Informations personnelles :
Localisation : France, Côte d'Or (Bourgogne)

Informations forums :
Inscription : mars 2007
Messages : 123
Points : 67
Points : 67
Par défaut [phpToPDF] Problème d'header ?

Voilà mon code, un truc très simpliste, limite un Hello World :

Code :
1
2
3
4
5
6
7
8
function BDCtoPDF() {
  include_once("phpToPDF/phpToPDF.php");
  $BDC = new phpToPDF();
  $BDC->AddPage();
  $BDC->SetFont("Times", "B", "16");
  $BDC->Text(40,10, "Bon de Commande du 03/03/2007");
  $BDC->Output();
}
et ça m'affiche :

%PDF-1.3 3 0 obj <> endobj 4 0 obj <> stream xœ3Rðâ2Ð35W(çr QÐw3T04Ó30PISp  ë[*X)S… §ü<…”TçüÜÜÄ< #¥TÁÀXˆŒ Ì5B²@:eQ” endstream endobj 1 0 obj <> endobj 5 0 obj <> endobj 2 0 obj << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI] /Font << /F1 5 0 R >> /XObject << >> >> endobj 6 0 obj << /Producer (FPDF 1.53) /CreationDate (D:20070403190322) >> endobj 7 0 obj << /Type /Catalog /Pages 1 0 R /OpenAction [3 0 R /FitH null] /PageLayout /OneColumn >> endobj xref 0 8 0000000000 65535 f 0000000243 00000 n 0000000427 00000 n 0000000009 00000 n 0000000087 00000 n 0000000330 00000 n 0000000531 00000 n 0000000607 00000 n trailer << /Size 8 /Root 7 0 R /Info 6 0 R >> startxref 710 %%EOF
jpean.net est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 04/04/2007, 09h13   #2
Membre expérimenté
 
Avatar de jc_cornic
 
Inscription : octobre 2006
Messages : 624
Détails du profil
Informations personnelles :
Âge : 36

Informations forums :
Inscription : octobre 2006
Messages : 624
Points : 588
Points : 588
Envoyer un message via MSN à jc_cornic
Est-ce que ton fichier php est au même niveau que le répertoire "font/" ???
Sinon, copie le répertoire font au meme niveau pour tester...

++
JC
__________________
VELOMASTER, idée cadeau ? un jeu de plateau

Hummmmm, des donuts !!!!

Merci de penser à , et et aussi
jc_cornic est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 01h13.


 
 
 
 
Partenaires

Hébergement Web