本文整理汇总了PHP中mPDF::StartProgressBarOutput方法的典型用法代码示例。如果您正苦于以下问题:PHP mPDF::StartProgressBarOutput方法的具体用法?PHP mPDF::StartProgressBarOutput怎么用?PHP mPDF::StartProgressBarOutput使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mPDF
的用法示例。
在下文中一共展示了mPDF::StartProgressBarOutput方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: count
$html=$REPORT->retrieve_html_mutasi_transfer_antar_skpd($result_query, $gambar);
//print html
$count = count($html);
for ($i = 0; $i < $count; $i++) {
//echo $html[$i];
}
//cetak reporting
$REPORT->show_status_download_kib();
$mpdf=new mPDF('','','','',15,15,16,16,9,9,'L');
$mpdf->debug=true;
$mpdf->AddPage('L','','','','',15,15,16,16,9,9);
$mpdf->setFooter('{PAGENO}') ;
$mpdf->progbar_heading = '';
$mpdf->StartProgressBarOutput(2);
$mpdf->useGraphs = true;
$mpdf->list_number_suffix = ')';
$mpdf->hyphenate = true;
$count = count($html);
for ($i = 0; $i <= $count; $i++) {
if($i==0)
$mpdf->WriteHTML($html[$i]);
else
{
$mpdf->AddPage('L','','','','',15,15,16,16,9,9);
$mpdf->WriteHTML($html[$i]);
}
}
示例2: mPDF
';
if ($_REQUEST['html']) { echo $html; exit; }
//==============================================================
//==============================================================
//==============================================================
define('_MPDF_URI','../'); // required for the progress bar
include("../mpdf.php");
$mpdf=new mPDF('','A4','','',15,15,20,20,5,5);
$mpdf->StartProgressBarOutput(2); // 2 => advanced mode
$mpdf->SetDisplayMode('fullpage');
$mpdf->useSubstitutions = true;
// Dynamically create image in var:smileyface
$img = imagecreatetruecolor(200, 200);
$white = imagecolorallocate($img, 255, 255, 255);
$red = imagecolorallocate($img, 255, 0, 0);
$green = imagecolorallocate($img, 0, 255, 0);
$blue = imagecolorallocate($img, 0, 0, 255);
imagearc($img, 100, 100, 200, 200, 0, 360, $white);
imagearc($img, 100, 100, 150, 150, 25, 155, $red);
imagearc($img, 60, 75, 50, 50, 0, 360, $green);
imagearc($img, 140, 75, 50, 50, 0, 360, $blue);