[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