Eléphant du PHP |
60 Messages
16 déc. 2011, 23:48
Cool j'ai bien avancé ...
mais je suis confronté à une autre erreur que j'ai un peu de mal à percuter maintenant :
Call to undefined function pdf_save() sur :
$pdf_water=new PDF();
$pdf_water->AddPage();
$pdf_water->SetFont('Arial','',12);
$txt="FPDF is a PHP class which allows to generate PDF files with pure PHP, that is to say ".
"without using the PDFlib library. F from FPDF stands for Free: you may use it for any ".
"kind of usage and modify it to suit your needs.\n\n";
for($i=0;$i<25;$i++)
$pdf_water->MultiCell(0,5,$txt,0,'J');
// $pdf_water->Output(); // original du PHP que j'ai remplacé par pdf_save car je ne veux pas d'affichage mais un enregistrement
pdf_save($pdf_water); // ici le pdf_save que j'ai ajouté
echo '<a href="test/watermark.pdf" target="_blank"><img src="images/stories/internes/telecharger_doc_technique.png"></a>';
?>
Pourtant en étudiant la doct php sur
http://fr2.php.net/manual/fr/function.pdf-save.php ... ça a l'air correct cette fonction pdf_save