$Left_Margin = 30; $Right_Margin = 25; break; case 'legal': $Page_Width = 612; $Page_Height = 1008; $Top_Margin = 50; $Bottom_Margin = 40; $Left_Margin = 30; $Right_Margin = 25; break; case 'legal_landscape': $Page_Width = 1008; $Page_Height = 612; $Top_Margin = 50; $Bottom_Margin = 40; $Left_Margin = 30; $Right_Margin = 25; break; } $PageSize = array(0, 0, $Page_Width, $Page_Height); $pdf = new Cpdf($PageSize); $pdf->addinfo('Author', 'webERP ' . $Version); $pdf->addinfo('Creator', 'webERP http://www.weberp.org'); /*depending on the language this font is modified see includes/class.pdf.php selectFont method interprets the text helvetica to be: for Chinese - BIg5 for Japanese - SJIS for Korean - UHC */ $pdf->selectFont('helvetica');