Hi all i need to create a report in php using pdf
As i am new to php first i have written a simple program to open a pdf
$pdf = pdf_new();
pdf_begin_page($pdf, 595, 842);
$arial = pdf_findfont($pdf, "Arial", "host", 1); pdf_setfont($pdf, $arial, 10); pdf_show_xy($pdf, "There are more things in heaven and earth, Horatio,", 50, 750);
pdf_show_xy($pdf, "than are dreamt of in your philosophy", 50, 730);
But i am getting error as call to undefined function pdf_new(). How to solve this?