Hello all,
I am trying to figure out an error I am getting using PDFOC. At the top of the generated report after running the program, I get
Warning: Missing argument for eztext() in /usr/local/www/apache22/domains/xxxxxxxxx.com/shopping/admin/includes/modules/pdfoc/class.ezpdf.php on line 1205.
Line 1205 starts
The report still generates fine but with that error repeating at the top for every order, so if there are 200 orders, then the error shows up 200 times. Any thoughts and solutions on this would be appreciated.Code:function ezText($text,$size=0,$options=array(),$test=0){ // this will add a string of text to the document, starting at the current drawing // position. // it will wrap to keep within the margins, including optional offsets from the left // and the right, if $size is not specified, then it will be the last one used, or // the default value (12 I think). // the text will go to the start of the next line when a return code "\n" is found. // possible options are: // 'left'=> number, gap to leave from the left margin // 'right'=> number, gap to leave from the right margin // 'aleft'=> number, absolute left position (overrides 'left') // 'aright'=> number, absolute right position (overrides 'right') // 'justification' => 'left','right','center','centre','full' // only set one of the next two items (leading overrides spacing) // 'leading' => number, defines the total height taken by the line, independent of the font height. // 'spacing' => a real number, though usually set to one of 1, 1.5, 2 (line spacing as used in word processing) // if $test is set then this should just check if the text is going to flow onto a new page or not, returning true or false // apply the filtering which will make the underlining function. $text = $this->ezProcessText($text); $newPage=false; $store_y = $this->y;
Thanks!



