diff --git a/admin/reports.inc.php b/admin/reports.inc.php index 45a4412..0861e48 100644 --- a/admin/reports.inc.php +++ b/admin/reports.inc.php @@ -507,10 +507,11 @@ foreach($report_stock as $n=>$v) { break; case 'pdf': case '': /* FIXME: handle landscape pages in here */ + $label_stock = $report_stock[$report['option']['stock']]; $rep=new lpdf( i18n($config['fairname']), i18n($report['name']), $_SERVER['DOCUMENT_ROOT'].$config['SFIABDIRECTORY']."/data/logo.gif"); - $rep->newPage(); + $rep->newPage($label_stock['page_width'], $label_stock['page_height']); $rep->setFontSize(11); $gen_mode = 'table'; if($report['option']['allow_multiline'] == 'yes')