当前位置: 首页>>代码示例>>PHP>>正文


PHP MYPDF::pageBody方法代码示例

本文整理汇总了PHP中MYPDF::pageBody方法的典型用法代码示例。如果您正苦于以下问题:PHP MYPDF::pageBody方法的具体用法?PHP MYPDF::pageBody怎么用?PHP MYPDF::pageBody使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MYPDF的用法示例。


在下文中一共展示了MYPDF::pageBody方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Iglesias

// set document information
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetAuthor($author);
$pdf->SetTitle("Elenco uscite anticipate di " . $alunno['cognome'] . " " . $alunno['nome']);
// set default header data
$pdf->SetHeaderData("", 0, "Scuola Media Statale \"Arborea - Lamarmora\" - secondaria di primo grado", "Via Isonzo, 5 - Iglesias (CI)");
// set header and footer fonts
$pdf->setHeaderFont(array(PDF_FONT_NAME_MAIN, '', 8.0));
$pdf->setFooterFont(array(PDF_FONT_NAME_DATA, '', 8.0));
// set default monospaced font
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
//set margins
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
//set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
//set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
//set some language-dependent strings
$pdf->setLanguageArray($l);
// ---------------------------------------------------------
// set font
$pdf->SetFont('helvetica', '', 10);
$pdf->SetLineWidth(0.1);
// add a page
$pdf->AddPage("P");
$pdf->pageBody($uscite, $author, $alunno, $mesi, $num_uscite, $somma_uscite);
// ---------------------------------------------------------
//Close and output PDF document
$pdf->Output('uscite_anticipate.pdf', 'D');
开发者ID:jamleh,项目名称:e-schoolbook,代码行数:31,代码来源:pdf_early_exit.php

示例2: Iglesias

// set document information
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetAuthor($author);
$pdf->SetTitle("Elenco ritardi di " . $alunno['cognome'] . " " . $alunno['nome']);
// set default header data
$pdf->SetHeaderData("", 0, "Scuola Media Statale \"Arborea - Lamarmora\" - secondaria di primo grado", "Via Isonzo, 5 - Iglesias (CI)");
// set header and footer fonts
$pdf->setHeaderFont(array(PDF_FONT_NAME_MAIN, '', 8.0));
$pdf->setFooterFont(array(PDF_FONT_NAME_DATA, '', 8.0));
// set default monospaced font
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
//set margins
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
//set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
//set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
//set some language-dependent strings
$pdf->setLanguageArray($l);
// ---------------------------------------------------------
// set font
$pdf->SetFont('helvetica', '', 10);
$pdf->SetLineWidth(0.1);
// add a page
$pdf->AddPage("P");
$pdf->pageBody($ritardi, $author, $alunno, $mesi, $num_ritardi, $somma_ritardi);
// ---------------------------------------------------------
//Close and output PDF document
$pdf->Output('ritardi.pdf', 'D');
开发者ID:jamleh,项目名称:e-schoolbook,代码行数:31,代码来源:pdf_delay.php

示例3: Iglesias

$pdf->SetCreator(PDF_CREATOR);
$pdf->SetAuthor($author);
$pdf->SetTitle("Elenco assenze di " . $alunno['cognome'] . " " . $alunno['nome']);
// set default header data
//$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, "Scuola Media Statale Arborea - Lamarmora, Iglesias", $_SESSION['__current_year__']->to_string()."  - Dettaglio delle assenze di  ".$alunno['cognome']." ".$alunno['nome']." (".mysql_num_rows($res_assenze).")");
$pdf->SetHeaderData("", 0, "Scuola Media Statale \"Arborea - Lamarmora\" - secondaria di primo grado", "Via Isonzo, 5 - Iglesias (CI)");
// set header and footer fonts
$pdf->setHeaderFont(array(PDF_FONT_NAME_MAIN, '', 8.0));
$pdf->setFooterFont(array(PDF_FONT_NAME_DATA, '', 8.0));
// set default monospaced font
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
//set margins
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
//set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
//set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
//set some language-dependent strings
$pdf->setLanguageArray($l);
// ---------------------------------------------------------
// set font
$pdf->SetFont('helvetica', '', 10);
$pdf->SetLineWidth(0.1);
// add a page
$pdf->AddPage("P");
$pdf->pageBody($assenze, $author, $alunno, $num_assenze);
// ---------------------------------------------------------
//Close and output PDF document
$pdf->Output('assenze.pdf', 'D');
开发者ID:jamleh,项目名称:e-schoolbook,代码行数:31,代码来源:pdf_absences.php


注:本文中的MYPDF::pageBody方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。