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


PHP mPDF::StartProgressBarOutput方法代碼示例

本文整理匯總了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]);
           
     }
}
開發者ID:TrinataBhayanaka,項目名稱:simbada-tangsel,代碼行數:31,代碼來源:tes_class_mutasi_transfer_antar_skpd.php

示例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);
開發者ID:Rajagunasekaran,項目名稱:BACKUP,代碼行數:29,代碼來源:example52_new_mPDF_4-2_features.php


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