Avss (10-03-2009)
Hey can any one know how can we open new aor existing PDF file using PHP..?
download php_pdf.dll & copy it into PHP folder.
Code:<?php // create handle for new PDF document $pdf = pdf_new(); // open a file pdf_open_file($pdf, "philosophy.pdf"); // start a new page (A4) pdf_begin_page($pdf, 595, 842); // get and use a font object $arial = pdf_findfont($pdf, "Arial", "host", 1); pdf_setfont($pdf, $arial, 10); // print text pdf_show_xy($pdf, "ABC", 50, 730); pdf_show_xy($pdf, "XYZ", 100, 730); // end page pdf_end_page($pdf); // close and save file pdf_close($pdf); ?>
Avss (10-03-2009)
There are currently 1 users browsing this thread. (0 members and 1 guests)
|
||||
Bookmarks