#48838 [Opn->Bgs]: Converting PHP script according to newer version of PDFlib

From: Date: Tue, 07 Jul 2009 18:38:20 +0000
Subject: #48838 [Opn->Bgs]: Converting PHP script according to newer version of PDFlib
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-139433@lists.php.net to get a copy of this message
ID: 48838 Updated by: pajoye@php.net Reported By: umasri1020 at gmail dot com -Status: Open +Status: Bogus Bug Type: PDF related Operating System: Unix PHP Version: 5.2.10 New Comment: Please report bug about pdflib to the pdflib developer or via PECL. Previous Comments: ------------------------------------------------------------------------ [2009-07-07 18:28:22] umasri1020 at gmail dot com 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 this bug report at http://bugs.php.net/?id=48838&edit=1

« previous php.bugs (#139433) next »