From: umasri1020 at gmail dot com Operating system: Unix PHP version: 5.2.10 PHP Bug Type: PDF related Bug description: Converting PHP script according to newer version of PDFlib
Description: ------------ Hi There, Below is the error which we are getting when we are trying to open the PDF file for processing files into MOM. It would be great if you can guide me on this issue. ========================================================= [06-Jul-2009 13:46:46] PHP Fatal error: Uncaught exception 'PDFlibException' with message 'pdf_open_file() expects exactly 2 parameters, 1 given' in /home/site name/public_html/custom/process_mom_file.php:2141 ========================================================== Code From Line 2140: $pdf = pdf_new(); pdf_open_file($pdf); pdf_set_info($pdf, "author", "Site Name"); pdf_set_info($pdf, "title", "Site Name.com - $form_type"); pdf_set_info($pdf, "creator", "Site Name.com"); pdf_set_info($pdf, "subject", "Site Name.com - $form_type"); pdf_begin_page($pdf, 612, 792); $font = pdf_findfont($pdf, "Helvetica", "winansi",0); pdf_setfont($pdf, $font, 12); Thanks in advance for your help With Regards, Sri -- Edit bug report at http://bugs.php.net/?id=48838&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48838&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48838&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48838&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48838&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48838&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48838&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48838&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48838&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48838&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48838&r=support Expected behavior: http://bugs.php.net/fix.php?id=48838&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48838&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48838&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48838&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48838&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48838&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48838&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48838&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48838&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48838&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48838&r=mysqlcfg