help please.. create pdf file from php code
Posted: Tue Dec 16, 2008 5:52 am
hello dear friends ... .
i need a help for creating pdf file from php code with mysql database
i found soem code from net ... but that is not run return me error ..
<?php
$mypdf = pdf_new();
pdf_open_file($mypdf, "riz.pdf");
pdf_begin_page($mypdf, 595, 842);
$myfont = pdf_findfont($mypdf, "Times-Roman", "host", 0);
pdf_setfont($mypdf, $myfont, 10);
pdf_show_xy($mypdf, "There are more things in heaven and earth, Horatio,", 50, 750);
pdf_show_xy($mypdf, "than are dreamt of in your philosophy", 50, 730);
pdf_end_page($mypdf);
pdf_close($mypdf);
pdf_delete($mypdf);
?>
this code return me error ...
Fatal error: Call to undefined function pdf_new() in c:\wamp\www\exemples\phpinfo1.php on line 2
help me please what i will do ...
i need a help for creating pdf file from php code with mysql database
i found soem code from net ... but that is not run return me error ..
<?php
$mypdf = pdf_new();
pdf_open_file($mypdf, "riz.pdf");
pdf_begin_page($mypdf, 595, 842);
$myfont = pdf_findfont($mypdf, "Times-Roman", "host", 0);
pdf_setfont($mypdf, $myfont, 10);
pdf_show_xy($mypdf, "There are more things in heaven and earth, Horatio,", 50, 750);
pdf_show_xy($mypdf, "than are dreamt of in your philosophy", 50, 730);
pdf_end_page($mypdf);
pdf_close($mypdf);
pdf_delete($mypdf);
?>
this code return me error ...
Fatal error: Call to undefined function pdf_new() in c:\wamp\www\exemples\phpinfo1.php on line 2
help me please what i will do ...