當前位置: 首頁>>代碼示例>>PHP>>正文


PHP mPDF::TOCpagebreak方法代碼示例

本文整理匯總了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;
開發者ID:arai13,項目名稱:poster-URPC,代碼行數:8,代碼來源:test.php

示例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'];
開發者ID:arai13,項目名稱:poster-URPC,代碼行數:31,代碼來源:print.php


注:本文中的mPDF::TOCpagebreak方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。