本文整理汇总了PHP中PDF::SetX方法的典型用法代码示例。如果您正苦于以下问题:PHP PDF::SetX方法的具体用法?PHP PDF::SetX怎么用?PHP PDF::SetX使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PDF
的用法示例。
在下文中一共展示了PDF::SetX方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: render
/**
* PDF image renderer
*
* @param PDF $pdf
*
* @return void
*/
function render($pdf)
{
global $lastpicbottom, $lastpicpage, $lastpicleft, $lastpicright;
// Check for a pagebreak first
if ($pdf->checkPageBreakPDF($this->height + 5)) {
$this->y = $pdf->GetY();
}
$curx = $pdf->GetX();
// If current position (left)set "."
if ($this->x == ".") {
$this->x = $pdf->GetX();
} else {
$this->x = $pdf->addMarginX($this->x);
$pdf->SetX($curx);
}
if ($this->y == ".") {
//-- first check for a collision with the last picture
if (isset($lastpicbottom)) {
if ($pdf->PageNo() == $lastpicpage && $lastpicbottom >= $pdf->GetY() && $this->x >= $lastpicleft && $this->x <= $lastpicright) {
$pdf->SetY($lastpicbottom + 5);
}
}
$this->y = $pdf->GetY();
} else {
$pdf->SetY($this->y);
}
if ($pdf->getRTL()) {
$pdf->Image($this->file, $pdf->getPageWidth() - $this->x, $this->y, $this->width, $this->height, "", "", $this->line, false, 72, $this->align);
} else {
$pdf->Image($this->file, $this->x, $this->y, $this->width, $this->height, "", "", $this->line, false, 72, $this->align);
}
$lastpicpage = $pdf->PageNo();
$pdf->lastpicpage = $pdf->getPage();
$lastpicleft = $this->x;
$lastpicright = $this->x + $this->width;
$lastpicbottom = $this->y + $this->height;
// Setup for the next line
if ($this->line == "N") {
$pdf->SetY($lastpicbottom);
}
}
示例2: PDF
$c4h = $c3h / 2;
$bottom = $top + $c1h;
$pdf = new PDF('L', 'mm', 'Letter');
$pdf->Open();
$pdf->SetTopMargin(13);
$pdf->SetLeftMargin(13);
$pdf->SetRightMargin(10);
$pdf->SetAutoPageBreak(True, 13);
$pdf->AddPage();
$pdf->SetCreator($_SERVER["PHP_SELF"]);
$pdf->SetAuthor("Keith Morrison, keithm@infused.org");
$pdf->SetTitle(sprintf(gtc("Pedigree for %s"), $o->full_name()));
$pdf->SetSubject(gtc("Genealogy"));
# Person 1
$pdf->SetY($top);
$pdf->SetX($c1x);
$pdf->Cell($w, $c1h, '', 1, 0, 'L');
$pdf->SetY($top + $c1h / 2 - 6);
$pdf->SetX($c1x);
$pdf->SetFont($font, 'B', 10);
$pdf->MultiCell($w, 4, isset($g_node_strings[1][0]) ? $g_node_strings[1][0] : '', 0, 'L');
$pdf->SetFont($font, '', 10);
$pdf->Cell($w, 4, isset($g_node_strings[1][1]) ? $g_node_strings[1][1] : '', 0, 2, 'L');
$pdf->Cell($w, 4, isset($g_node_strings[1][2]) ? $g_node_strings[1][2] : '', 0, 0, 'L');
# Person 2
$pdf->SetY($top);
$pdf->SetX($c2x);
$pdf->Cell($w, $c2h, '', 1, 0, 'L');
$pdf->SetY($top + $c2h / 2 - 6);
$pdf->SetX($c2x);
$pdf->SetFont($font, 'B', 10);
示例3: PDF
//Instancia a classe gerador de pdf
$pdf = new PDF();
//Define os atributos de propriedade do arquivo PDF
$pdf->SetCreator('work | eventos');
$pdf->SetAuthor($usuarioNome . " - " . $empresaNome);
$pdf->SetTitle('Relação de Momentos de Repertório');
$pdf->SetSubject('Relatório gerado automaticamente pelo sistema');
$pdf->AliasNbPages();
$pdf->AddPage();
//Títulos das colunas
$pdf->SetFont('Arial', 'B', 10);
//Define a cor RGB do fundo da celula
$pdf->SetFillColor(178, 178, 178);
//Faz a célula ser preenchida. Isso é feito setando 1 após a expressao de alinhamento
$pdf->Cell(0, 6, 'Descrição do Momento de Repertório', 1, 0, 'L', 1);
$pdf->SetX(170);
$pdf->Cell(0, 6, 'Ativo');
//Monta as linhas com os dados da query
$pdf->SetFont('Arial', '', 10);
while ($dados = mysql_fetch_array($sql)) {
switch ($dados[ativo]) {
case 0:
$ativo = "Inativo";
break;
case 1:
$ativo = "Ativo";
break;
}
$pdf->ln();
$pdf->Cell(0, 5, $dados['nome']);
$pdf->SetX(170);
示例4: array
//$address = getAddressBookPermanetn($_POST['cus_already_bill']);
$noaddress = false;
$stnoname = "Street name";
$prov = "Prov";
$postal = "600110";
$city = "chennai";
$total_due = 1000;
$taxs = 500;
$total_due= "$".number_format($total_due, 2, '.', ',');
$pdf->Ln(7);
$pdf->SetX(5);
$pdf->Write(8,"$name");
$pdf->Ln(7);
$pdf->SetX(5);
$pdf->Write(8,"$stnoname");
$pdf->Ln(7);
$pdf->SetX(5);
$pdf->Write(8,"$city $prov $postal");
$pdf->ln(15);
$head_valur = array("Header","Amount");
$caption = array();
$caption1["header"][] = "Settlement Period \n".$_SESSION['startdate']." to ".$_SESSION['todate'];
$caption["price"][] = "$909.34";
$pdf->SetFont('Helvetica','B',10);
$settel2 = $_SESSION['startdate']." to ".$_SESSION['todate'];
示例5:
$pdf->SetCreator('edinger@bol.com.br');
$pdf->SetAuthor($usuarioNome . " - " . $empresaNome);
$pdf->SetTitle('Detalhamento do cliente');
$pdf->SetSubject('Relatório gerado automaticamente pelo sistema');
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetY(25);
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetFillColor(178, 178, 178);
$pdf->Cell(0, 6, 'Detalhamento do Cliente', 1, 0, 'C', 1);
//Nova Linha
$pdf->ln();
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 6, 'Tipo Cliente:', 1, 0, 'L');
$pdf->SetFont('Arial', 'I', 9);
$pdf->SetX(39);
$pdf->Cell(0, 6, $conta_descricao, 0, 0, 'L');
$pdf->SetX(57);
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 6, 'Nome/Razão Social:', 1, 0, 'L');
$pdf->SetFont('Arial', 'I', 9);
$pdf->SetX(88);
$pdf->Cell(0, 6, $dados_conta['nome'], 0, 0, 'L');
$pdf->Image($conta_figura, 35, 32, 4, 4);
//Nova Linha
$pdf->ln();
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 6, 'Endereço:', 1, 0, 'L');
$pdf->SetFont('Arial', 'I', 9);
$pdf->SetX(37);
$pdf->Cell(0, 6, $dados_conta['endereco'], 0, 0, 'L');
示例6: date
$pdf->AddPage();
$pdf->Image('../imagenes/logo.jpg', 40, 8, 33);
// Arial bold 15
$pdf->SetFont('Arial', 'B', 8);
// Movernos a la derecha
$pdf->SetY(4);
$pdf->Cell(80);
// Título
$pdf->Cell(60, 5, 'Angytours', 0, 2, 'C');
$pdf->Cell(60, 5, 'Calle 59J # 565 X 110 y 112 Col Bojorquez', 0, 2, 'C');
$pdf->Cell(60, 5, 'Tel: (999)9-12-28-95 | Cel: (044)99-92-44-54-14', 0, 2, 'C');
$pdf->Cell(60, 5, 'Correo: angeviajes@hotmail.com', 0, 2, 'C');
$pdf->Cell(60, 5, 'RFC: PELA620129L36', 0, 2, 'C');
$pdf->SetFont('Arial', '', 10);
$pdf->SetY(35);
$pdf->SetX(140);
$pdf->Cell(40, 8, utf8_decode("Fecha: ") . utf8_decode($dias[date('w')] . " " . date('d') . " de " . $meses[date('n') - 1] . " del " . date('Y')), 0, 1);
$pdf->SetY(45);
$pdf->SetX(20);
$pdf->Cell(130, 8, utf8_decode("Cliente : ") . utf8_decode($nombre), 1, 0);
$pdf->Cell(30, 8, utf8_decode("Folio : ") . $FolioGrupo, 1, 1);
$pdf->SetX(20);
$pdf->Cell(60, 8, utf8_decode("Cantidad : ") . $CostoTotal, 1, 0, 'L');
$pdf->MultiCell(100, 8, utf8_decode("Importe Letras : ") . $CantLetras, 1, 'L');
$pdf->SetX(20);
$pdf->MultiCell(160, 5, utf8_decode("Descripción : ") . utf8_decode($Descripcion), 1, 'L');
$pdf->SetX(20);
$pdf->Cell(100, 14, utf8_decode("Le atendio : ") . utf8_decode($nombreU), 1, 0);
$pdf->Cell(60, 14, utf8_decode("Firma : "), 1, 2);
///Segundo Cupon
$pdf->Image('../imagenes/logo.jpg', 40, 140, 32, 24);
示例7: fecha
$nit = $rs['nit'];
$matricula = $rs['matricula'];
$telefono = $rs['celular'];
$correo = $rs['mail'];
$montog = number_format($rs['montog'], 2);
$montoesp = number_format($rs['montoesp'], 2);
$tiempo = $rs['tiempomeses'] . "(meses)";
$tiempoesp = $rs['tiempomesesp'] . "(meses)";
$data[] = array($entidad, $nit, $matricula, $telefono, $correo, $montog, $montoesp, $tiempo, $tiempoesp);
$cont++;
}
$pdf->SetFont('Arial', '', 5);
$pdf->BasicTable($header, $data);
$pdf->SetFont('helvetica', 'B', 8);
$pdf->Cell(180, 12, utf8_decode('ESTA INFORMACION ESTA SIENDO ASOCIADA A SU USUARIO.'), 0, FALSE, 'C');
$pdf->Ln(20);
//codigo de barras____________________
$pdf->SetX(35);
$pdf->Sety(135);
$pdf->Cell(140, 25, '', 0, FALSE, 'R');
$pdf->Code39(140, 250, $codigo, 1, 8);
$pdf->Output('BUSQUEDA_' . $user . '.pdf', 'D');
}
function fecha($fecha = '')
{
if (strlen($fecha) > 0) {
return date('d/m/Y', strtotime($fecha));
} else {
return '-';
}
}
示例8: while
//exit("Error:".$str3);
$res3 = mysql_query($str3, $conn);
while ($bar3 = mysql_fetch_assoc($res3)) {
if ($bar3['plus'] == '1') {
if ($bar3['jumlah'] != '') {
$arrValPlus[$bar3['karyawanid']][$bar3['idkomponen']] = $bar3['jumlah'];
}
} elseif ($bar3['plus'] == '0') {
if ($bar3['jumlah'] != '') {
$arrValMinus[$bar3['karyawanid']][$bar3['idkomponen']] = $bar3['jumlah'];
}
}
}
foreach ($arrKary as $dtKary) {
$pdf->Image('images/logo.jpg', $pdf->GetX(), $pdf->GetY(), 10);
$pdf->SetX($pdf->getX() + 10);
$pdf->SetFont('Arial', 'B', 8);
$pdf->Cell(75, 12, $_SESSION['org']['namaorganisasi'], 0, 1, 'L');
$pdf->SetFont('Arial', '', 6);
$pdf->Cell(71, 4, $_SESSION['lang']['slipGaji'] . ': ' . $arrBln[$idBln] . "-" . $bln[0], 'T', 0, 'L');
$pdf->SetFont('Arial', '', 6);
$pdf->Cell(25, 4, 'Printed on: ' . date('d-m-Y: H:i:s'), "T", 1, 'R');
$pdf->SetFont('Arial', '', 6);
$pdf->Cell(25, 4, $_SESSION['lang']['nik'] . "/" . $_SESSION['lang']['tmk'], 0, 0, 'L');
$pdf->Cell(35, 4, ": " . $arrNik[$dtKary] . "/" . tanggalnormal($arrTglMsk[$dtKary]), 0, 0, 'L');
$pdf->Cell(18, 4, $_SESSION['lang']['unit'] . "/" . $_SESSION['lang']['bagian'], 0, 0, 'R');
$pdf->Cell(28, 4, ': ' . $idAfd . " / " . $arrBag[$dtKary], 0, 1, 'L');
$pdf->Cell(25, 4, $_SESSION['lang']['namakaryawan'] . ":", 0, 0, 'L');
$pdf->Cell(35, 4, ': ' . $arrNmKary[$dtKary], 0, 0, 'L');
$pdf->Cell(18, 3, $_SESSION['lang']['jabatan'], 0, 0, 'R');
$pdf->Cell(28, 4, ':' . $arrJbtn[$dtKary], 0, 1, 'L');
示例9: pdf
/**
* Genera un reporte en PDF
*
* @param array $result
* @param array $sumArray
* @param string $title
* @param array $weightArray
* @param array $headerArray
*/
function pdf($result, $sumArray, $title, $weightArray, $headerArray)
{
$config = Config::read('config');
$active_app = Router::get_application();
//Orientación
if ($sumArray > 200) {
$orientation = 'L';
} else {
$orientation = 'P';
}
$numRows = 140;
//Tipo de Papel
if ($sumArray > 250) {
$paper = 'legal';
} else {
$paper = 'letter';
}
if ($paper == 'letter' && $orientation == 'P') {
$widthPage = 220;
$numRows = 42;
}
if ($paper == 'legal' && $orientation == 'L') {
$widthPage = 355;
$numRows = 30;
}
if ($paper == 'letter' && $orientation == 'L') {
$widthPage = 270;
$numRows = 30;
}
//Crear Documento PDF
$pdf = new PDF($orientation, 'mm', $paper);
$pdf->Open();
$pdf->AddPage();
//Nombre del Listado
$pdf->SetFillColor(255, 255, 255);
$pdf->AddFont('Verdana', '', 'verdana.php');
$pdf->SetFont('Verdana', '', 14);
$pdf->SetY(20);
$pdf->SetX(0);
$pdf->Ln();
if ($config->{$active_app}->name) {
$pdf->MultiCell(0, 6, strtoupper($config->{$active_app}->name), 0, "C", 0);
}
$pdf->MultiCell(0, 6, "REPORTE DE " . strtoupper($title), 0, "C", 0);
$pdf->SetFont('Verdana', '', 12);
if (isset($_SESSION['fecsis'])) {
$pdf->MultiCell(0, 6, "FECHA " . date("Y-m-d"), 0, "C", 0);
}
$pdf->Ln();
//Colores, ancho de línea y fuente en negrita
$pdf->SetFillColor(0xf2, 0xf2, 0xf2);
$pdf->SetTextColor(0);
$pdf->SetDrawColor(0, 0, 0);
$pdf->SetLineWidth(0.2);
$pdf->SetFont('Arial', 'B', 10);
if ($weightArray[0] < 11) {
$weightArray[0] = 11;
}
//Parametros del Reporte
$pos = floor($widthPage / 2 - $sumArray / 2);
$pdf->SetX($pos);
for ($i = 0; $i <= count($headerArray) - 1; $i++) {
$pdf->Cell($weightArray[$i], 7, $headerArray[$i], 1, 0, 'C', 1);
}
$pdf->Ln();
//Restauración de colores y fuentes
$pdf->SetFillColor(224, 235, 255);
$pdf->SetTextColor(0);
$pdf->SetFont('Arial', 'B', 7);
//print_r($weightArray);
//Buscamos y listamos
$n = 1;
$p = 1;
$t = 0;
foreach ($result as $row) {
//$pdf->Cell(Ancho, Alto, contenido, ?, ?, Align)
if ($n > $numRows || $p == 1 && $n > $numRows - 3) {
$pdf->AddPage($orientation);
$pdf->SetY(30);
$pdf->SetX($pos);
$pdf->SetFillColor(0xf2, 0xf2, 0xf2);
$pdf->SetTextColor(0);
$pdf->SetDrawColor(0, 0, 0);
$pdf->SetLineWidth(0.2);
$pdf->SetFont('Arial', 'B', 10);
for ($i = 0; $i < count($headerArray); $i++) {
$pdf->Cell($weightArray[$i], 7, $headerArray[$i], 1, 0, 'C', 1);
}
$pdf->Ln();
$pdf->SetFillColor(224, 235, 255);
$pdf->SetTextColor(0);
//.........这里部分代码省略.........
示例10: while
break;
case 3:
$desc_situacao = "Títulos Não Encontrados";
break;
}
$pdf->SetFont('Arial', 'B', 14);
$pdf->Cell(0, 5, $desc_situacao);
$pdf->ln();
}
//Títulos das colunas
$pdf->SetFont('Arial', 'B', 10);
//Define a cor RGB do fundo da celula
$pdf->SetFillColor(178, 178, 178);
//Faz a célula ser preenchida. Isso é feito setando 1 após a expressao de alinhamento
$pdf->Cell(0, 6, 'Data', 1, 0, 'L', 1);
$pdf->SetX(31);
$pdf->Cell(0, 6, 'Nosso Número');
$pdf->SetX(70);
$pdf->Cell(150, 6, 'Sacado');
$pdf->Cell(30, 6, 'Valor', 0, 0, 'R');
$pdf->Cell(30, 6, 'Juros', 0, 0, 'R');
//Monta as linhas com os dados da query
$pdf->SetFont('Arial', '', 10);
while ($dados = mysql_fetch_array($query)) {
switch ($dados["status"]) {
case 1:
$desc_situacao = "Títulos Processados";
break;
case 2:
$desc_situacao = "Titulos Não Processados - Juros";
break;
示例11:
$pdf->AddPage();
$pdf->AddCol('invseq', '9%', 'Invoice #', 'L');
$pdf->AddCol('voucher_date', '10%', 'Date', 'L');
$pdf->AddCol('voucher_cheque', '9%', 'Cheque', 'L');
//if ($ret['account_cate'] != '276') {
$pdf->AddCol('voucher_remarks', '42%', 'Description', 'L');
/*} else {
$pdf->AddCol('voucher_remarks', '43%', 'Description', 'L');
$pdf->AddCol('days', '5%', 'Days', 'R');
}*/
$pdf->AddCol('debit_amount', '10%', 'Debit', 'R');
$pdf->AddCol('credit_amount', '10%', 'Credit', 'R');
$pdf->AddCol('balance', '10%', 'Balance', 'R');
$pdf->Table($ret['data'], $prop);
$ac = number_format($ret['aob']);
if (count($ret['data']) > 0) {
$ac = $ret['data'][count($ret['data']) - 1]['balance'];
}
$pdf->SetFont('Arial', 'B', 10);
$cellSize = 11 / 100 * $pdf->TableWidth;
$pdf->SetX($pdf->lMargin);
$pdf->Cell(67 / 100 * $pdf->TableWidth, 5, 'Total', 0, 0, 'C');
$pdf->Cell($cellSize, 5, number_format($ret['dr']), 0, 0, 'R');
$pdf->Cell($cellSize, 5, number_format($ret['cr']), 0, 0, 'R');
$pdf->Cell($cellSize, 5, $ac, 0, 0, 'R');
}
if (isset($_GET['account_class']) && strlen($_GET['account_class']) > 0) {
$pdf->Output("ledger_class.pdf", "D");
} else {
$pdf->Output("account_ledger.pdf", "D");
}
示例12: die
}
}
// end of PDF class
$dbLink = get_db_connection();
$result = mysql_query("select lgumunicipality, lguprovince, lguoffice from ebpls_buss_preference") or die(mysql_error());
$resulta = mysql_fetch_row($result);
//$pdf=new FPDF('L','mm','Legal');
$pdf = new PDF('L', 'mm', 'Legal');
$pdf->setLGUinfo($resulta[0], $resulta[1], $resulta[2]);
$pdf->AddPage();
$pdf->AliasNbPages();
$Y_Label_position = 50;
$Y_Table_Position = 55;
$pdf->SetFont('Arial', 'B', 6);
$pdf->SetY($Y_Label_position);
$pdf->SetX(5);
$pdf->Cell(10, 5, 'SEQ. NO.', 1, 0, 'C');
$pdf->SetX(15);
$pdf->Cell(25, 5, 'PERMIT NO.', 1, 0, 'C');
$pdf->SetX(40);
$pdf->Cell(55, 5, 'NAME OF OWNER', 1, 0, 'C');
$pdf->SetX(95);
$pdf->Cell(60, 5, 'BUSINESS NAME', 1, 0, 'C');
$pdf->SetX(155);
$pdf->Cell(60, 5, 'BUSINESS NATURE', 1, 0, 'C');
$pdf->SetX(215);
$pdf->Cell(60, 5, 'BUSINESS ADDRESS', 1, 0, 'C');
$pdf->SetX(275);
$pdf->Cell(30, 5, 'CAPITAL INVESTMENT', 1, 0, 'C');
$pdf->SetX(305);
$pdf->Cell(30, 5, 'GROSS LAST YEAR', 1, 0, 'C');
示例13: sum
$sumbak2 = mysql_query("select sum(backtax) from comparative_statement where for_year='{$datenext}' and\n paid = 0");
$sumbak2 = mysql_fetch_row($sumbak2);
$graphbak1 = $sumbak1[0] / 100000;
$graphbak2 = $sumbak2[0] / 100000;
$getlgu = @mysql_query("select city_municipality_desc from ebpls_city_municipality where city_municipality_code = '{$resulta['0']}'");
$getlgu = @mysql_fetch_row($getlgu);
$getprov = @mysql_query("select province_desc from ebpls_province where province_code = '{$resulta['1']}'");
$getprov = @mysql_fetch_row($getprov);
//$pdf=new FPDF('L','mm','Legal');
$pdf = new PDF('L', 'mm', 'Legal');
$pdf->setLGUinfo($getlgu[0], $getprov[0], $resulta[2]);
$pdf->AddPage();
$pdf->AliasNbPages();
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetY(40);
$pdf->SetX(10);
$pdf->Cell(25, 5, '', 0, 0, 'L');
$pdf->SetX(50);
$pdf->Cell(100, 5, '', 0, 1, 'L');
$Y_Label_position = 50;
$Y_Table_Position = 55;
$pdf->SetY(67);
$pdf->SetX(50);
$pdf->Cell(25, 5, 'Taxes', 0, 0, 'L');
$pdf->SetY(87);
$pdf->SetX(50);
$pdf->Cell(25, 5, 'Fees', 0, 0, 'L');
$pdf->SetY(107);
$pdf->SetX(50);
$pdf->Cell(25, 5, 'Surcharge', 0, 0, 'L');
$pdf->SetY(127);
示例14: elseif
$prefix = "";
} elseif ($treelevel == 2) {
$prefix = " ";
} elseif ($treelevel == 3) {
$prefix = " ";
} elseif ($treelevel == 4) {
$prefix = " ";
}
//if display folder indicator = 1, account with placeholder=1 will display as [account]
if ($showplacefolderindicator == 1 && $placeholder == 1) {
$displaytext = $prefix . "[" . $accounts_name . "]";
} else {
$displaytext = $prefix . $accounts_name;
}
$data = array($prefix . $displaytext, "{$bracket1} {$displayamt1}", "{$bracket2} {$displayamt2}");
$pdf->SetX($marginx);
if ($showzero == "on") {
$checkzero = 1;
} else {
$checkzero = $displayamt1;
if ($checkzero == 0) {
$checkzero = $displayamt2;
}
}
//if(substr($displaytext,0,1) == "[" || $checkzero <> 0){
if ($showplacefolderindicator == 1 && $placeholder == 1 || $checkzero != 0 || $checkzero != "0.00") {
$i = 0;
foreach ($data as $col) {
if ($i == 0) {
$align = 'L';
} else {
示例15: PDF
}
$pdf = new PDF('P', 'mm', 'A4');
$pdf->AddPage();
$th = $_REQUEST['th'];
$renstra = th_renstra($th);
$font = 'Arial';
$noborder = 0;
$border = 1;
$size = 10;
$ln = 5;
$margin = 25;
$tinggi = 275;
$w = array(5, 150);
$pdf->Ln();
$pdf->SetFont($font, 'B', $size + 2);
$pdf->SetX($margin + $w[0]);
$pdf->Cell($w[1], $ln, 'INDIKATOR KINERJA UTAMA', '', 1, 'C');
$max = 0;
$arrUnit = $pdf->SplitToArray($w[1], $ln, trim(strtoupper(nm_unit('480000'))));
if ($max < count($arrUnit)) {
$max = count($arrUnit);
}
for ($i = 0; $i < $max; $i++) {
$pdf->SetX($margin + $w[0]);
$pdf->Cell($w[1], $ln, $arrUnit[$i], '', 1, 'C');
}
$pdf->SetX($margin + $w[0]);
$pdf->Cell($w[1], $ln, 'Periode Renstra ' . $renstra, '', 1, 'C');
$pdf->Ln() * 2;
$w1 = array(0, 65, 95);
$pdf->SetFont($font, 'B', $size);