本文整理匯總了PHP中Cpdf::addinfo方法的典型用法代碼示例。如果您正苦於以下問題:PHP Cpdf::addinfo方法的具體用法?PHP Cpdf::addinfo怎麽用?PHP Cpdf::addinfo使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Cpdf
的用法示例。
在下文中一共展示了Cpdf::addinfo方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
$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');