本文整理匯總了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);