本文整理汇总了PHP中mPDF::TOCpagebreak方法的典型用法代码示例。如果您正苦于以下问题:PHP mPDF::TOCpagebreak方法的具体用法?PHP mPDF::TOCpagebreak怎么用?PHP mPDF::TOCpagebreak使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mPDF
的用法示例。
在下文中一共展示了mPDF::TOCpagebreak方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: mPDF
<?php
include './mpdf/mpdf.php';
$mpdf = new mPDF();
$mpdf->TOCpagebreak();
$mpdf->TOC_Entry("X Acknowledgements");
$mpdf->Output();
exit;
示例2: strtoupper
$mpdf->WriteHTML("<div class='div_center'><br /><br />");
$mpdf->WriteHTML("<p style='font-size: 22px; text-align: center;'> PROCEEDINGS OF THE NATURAL SCIENCES DIVISION UNDERGRADUATE RESEARCH POSTER CONFERENCE </p>");
$mpdf->WriteHTML("<br /><br /><br /><br />");
$mpdf->WriteHTML("<p style='font-size: 18px; text-align: center;'> EARLHAM COLLEGE </p>");
$mpdf->WriteHTML("<p style='font-size: 18px; text-align: center;'> RICHMOND INDIANA </p>");
$mpdf->WriteHTML("<p style='font-size: 18px; text-align: center;'> OCTOBER 23, 2015 </p>");
$mpdf->WriteHTML("<br /><br /><br />");
$mpdf->WriteHTML("<p style='font-size: 16px; text-align: center;'> COMMITTEE MEMBERS: </p>");
$mpdf->WriteHTML("</div>");
$mpdf->WriteHTML("<div class='names'>");
$mpdf->WriteHTML('<columns column-count="2" column-gap="12" vAlign="justify" />');
$mpdf->WriteHTML("<p style='font-size: 16px; text-align: left; float: left;'><i> Students: </i></span>");
$mpdf->WriteHTML("<columnbreak />");
$mpdf->WriteHTML("<p style='font-size: 16px; text-align: right; float: right;'><i> Faculty: </i> </span>");
$mpdf->WriteHTML("</div>");
$mpdf->TOCpagebreak(array('toc-preHTML' => '<h1> Contents </h1>'));
$mpdf->AddPage('P', 'Letter', '1');
//$mpdf->WriteHTML('<pagebreak resetpagenum="1" />');
$mpdf->WriteHTML('<columns column-count="2" column-gap="17" />');
$mpdf->keepColumns = true;
$mpdf->pagenumPrefix = "Page ";
$mpdf->SetHeader('{PAGENO}');
foreach ($sql as $name => $dep) {
$result = $conn->query($dep);
$mpdf->WriteHTML('<h4 class="text-align: center"> ' . strtoupper($name) . '</h4>');
$letter = 'A';
$mpdf->TOC_Entry($name, 0);
if ($result->num_rows > 0) {
while ($row = $result->fetch_assoc()) {
$text = $row['abstract'];
$title = $row['title'];