$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]); } }
'; 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);