function PageCetak($data, $no_urut)
 {
     $this->AliasNbPages();
     $this->SetLeftMargin(10);
     $this->AddPage("P");
     $this->AddFont('BKANT');
     $this->SetFont('BKANT', '', 12);
     $lheader = $this->lengthCell / 8;
     $lheader1 = $lheader * 1;
     $lheader2 = $lheader * 2;
     $lheader3 = $lheader * 3;
     $lheader4 = $lheader * 4;
     $lheader7 = $lheader * 7;
     $this->SetFont('BKANT', '', 12);
     $this->Image('../images/logo_pemda.png', 17, 13, 25, 25);
     $this->SetFont('TIMES', 'B', 14);
     $this->Cell(40, $this->height, "", "", 0, 'L');
     $this->Cell(181, $this->height, "PEMERINTAH KOTA BANDUNG", "", 0, 'C');
     $this->Ln();
     $this->SetFont('TIMES', 'B', 20);
     $this->Cell(40, $this->height + 10, "", "", 0, 'L');
     $this->Cell(181, $this->height + 10, "D I N A S  P E L A Y A N A N  P A J A K", "", 0, 'C');
     $this->Ln();
     $this->SetFont('BKANT', '', 12);
     $this->Cell(40, $this->height, "", "", 0, 'L');
     $this->Cell(181, $this->height, "Jalan Wastukancana No 2 Telp. 022 4235052 - Bandung", "", 0, 'C');
     $this->Ln(5);
     $this->Ln();
     $this->SetFont('BKANT', '', 12);
     $this->Cell($this->lengthCell, $this->height, "", "T", 100, 'L');
     $this->Ln();
     $lbody = $this->lengthCell / 4;
     $lbody1 = $lbody * 1;
     $lbody2 = $lbody * 2;
     $lbody3 = $lbody * 3;
     $this->SetWidths(array(21, 2, 38, 49));
     $this->SetAligns(array("L", "L", "L", "L"));
     $posy = $this->getY();
     $data["letter_no"] = trim($data["letter_no"]);
     if (!empty($data["letter_no"])) {
         $this->RowMultiBorderWithHeight(array("Nomor", ":", "", "-Disyanjak"), array("", "", "", ""), 2);
     } else {
         $this->RowMultiBorderWithHeight(array("Nomor", ":", "", "-Disyanjak"), array("", "", "", ""), 2);
     }
     $this->SetWidths(array(21, 2, $this->lengthCell - 22));
     $this->SetAligns(array("L", "L", "L"));
     $posy = $this->getY();
     $this->RowMultiBorderWithHeight(array("Sifat", ":", "  Biasa"), array("", "", ""), 2);
     $this->RowMultiBorderWithHeight(array("Lampiran", ":", "  -"), array("", "", ""), 2);
     $this->RowMultiBorderWithHeight(array("Perihal", ":", "  Konfirmasi Pembayaran BPHTB"), array("", "", ""), 2);
     $this->setY($posy - 12);
     $today = getdate();
     $lkepada = $this->lengthCell / 5;
     $lkepada2 = $lkepada * 2;
     $lkepada3 = $lkepada * 3 + 20;
     $this->Cell($lkepada3 - 20, $this->height, "", "", 0, 'L');
     $this->Cell($lkepada2 - 60, $this->height, "Bandung,", "", 0, 'L');
     $this->Cell(30, $this->height, dateToday(), "", 0, 'R');
     $this->Ln();
     $this->Cell($lkepada3 - 20, $this->height, "", "", 0, 'L');
     $this->Cell($lkepada2, $this->height, "Kepada Yth.", "", 0, 'L');
     $this->Ln();
     $this->SetAligns(array("L", "L"));
     $this->SetWidths(array($lkepada3 - 20, "85"));
     $this->RowMultiBorderWithHeight(array("", substr($data['wp_name'], 0, 23)), array("", ""), $this->height);
     $this->Cell($lkepada3 - 20, $this->height, "", "", 0, 'L');
     $this->Cell($lkepada2, $this->height, "Di ", "", 0, 'L');
     $this->Ln();
     $this->SetAligns(array("L", "L"));
     $this->SetWidths(array($lkepada3 - 20, "85"));
     $this->RowMultiBorderWithHeight(array("", $data['wp_address_name'] . ", RT " . $data['wp_rt'] . "/ RW " . $data['wp_rw']), array("", ""), $this->height);
     $this->SetAligns(array("L", "L"));
     $this->SetWidths(array($lkepada3 - 20, "85"));
     $this->RowMultiBorderWithHeight(array("", "KEC. " . $data['kec']), array("", ""), $this->height);
     $this->Cell($lkepada3 - 20, $this->height, "", "", 0, 'L');
     $pieces = explode("KABUPATEN ", $data['region_name']);
     $result = join("", $pieces);
     $pieces = explode("KOTA ", $result);
     $result = join("", $pieces);
     $pieces = explode(" KOTA", $result);
     $result = join("", $pieces);
     $this->Cell(85, $this->height, $result, "", 0, 'L');
     $this->Ln();
     $this->Ln();
     $this->SetFont('BKANT', '', 12);
     $this->SetAligns(array("L", "L", "L", "L"));
     $this->SetWidths(array("25", 200));
     $this->RowMultiBorderWithHeight(array("", "Disampaikan dengan hormat, berdasarkan data pembukuan Dinas Pelayanan Pajak Kota Bandung hingga saat ini tercatat, bahwa objek pajak :"), array("", ""), 5);
     $this->SetAligns(array("L", "L", "L", "L"));
     $this->SetWidths(array("35", "55", "5", ""));
     $this->RowMultiBorderWithHeight(array("", "Alamat\n" . "NOP", ":\n" . ":", $data['object_address_name'] . "\n" . $data['njop_pbb']), array("", "", "", ""), 5);
     $this->SetWidths(array(25, 170));
     $this->RowMultiBorderWithHeight(array("", "Belum melakukan pembayaran pajak BPHTB Tahun " . date("Y") . " dengan Nilai sebesar"), array("", ""), 5);
     $this->SetWidths(array(25, 170));
     $this->RowMultiBorderWithHeight(array("", "Rp. " . number_format($data['bphtb_amt_final'], 2, ",", ".") . " sesuai dengan : "), array("", ""), 5);
     $this->SetAligns(array("L", "L", "L", "L"));
     $this->SetWidths(array("35", "55", "5", ""));
     $this->RowMultiBorderWithHeight(array("", "Nota Verifikasi BPHTB\n" . "No Registrasi\n" . "Tanggal", "\n:" . "\n:", "\n" . $data['registration_no'] . "\n" . dateToString($data['creation_date'])), array("", "", "", ""), 5);
     $this->SetWidths(array(25, 180));
     $this->RowMultiBorderWithHeight(array("", "Berkenaan dengan hal tersebut di atas, dimohon untuk hadir memberikan penjelasan tentang realisasi pembayaran pajak BPHTB dimaksud selambat-lambatnya 2 (dua) hari setelah diterimanya surat ini, pada :"), array("", ""), 5);
     $this->SetAligns(array("L", "L", "L", "L"));
     $this->SetWidths(array("35", "55", "5", "163"));
     $this->RowMultiBorderWithHeight(array("", "Tempat", ":", "Seksi Penyelesaian Piutang Pajak Bidang Pajak Pendaftaran\n" . "DINAS PELAYANAN PAJAK Kota Bandung\n" . "Jl. Wastukencana No. 2 Bandung."), array("", "", "", ""), 5);
     $this->RowMultiBorderWithHeight(array("", "Jam", ":", "08.00 s.d 16.00 WIB"), array("", "", "", ""), 5);
     $this->SetWidths(array(25, 180));
     $this->RowMultiBorderWithHeight(array("", "Apabila saudara/i tidak menyampaikan konfirmasi dilakukan lebih dari 2 (dua) hari setelah diterimanya surat ini atau tidak dilakukan sama sekali konfirmasi. Maka Nota Verifikasi tersebut dinyatakan tidak berlaku dan harus diperbaharui kembali."), array("", ""), 5);
     $this->RowMultiBorderWithHeight(array("", "Demikian agar menjadi maklum, atas perhatian dan kerjasamanya diucapkan terima kasih."), array("", ""), 5);
     $ltable = ($this->lengthCell - 15) / 14;
     $ltable1 = $ltable * 1;
     $ltable2 = $ltable * 2;
     $ltable3 = $ltable * 3;
     $ltable6 = $ltable * 6;
     $ltable4 = $ltable * 4;
     $this->Cell($this->lengthCell, $this->height, "", "", 0, 'L');
     $lbody = $this->lengthCell / 16;
     $lbody2 = $lbody * 2;
     $lbody4 = $lbody * 4;
     $this->Cell($this->lengthCell, $this->height, "", "", 0, 'L');
     $this->Ln();
     //$this->Image('../images/ttd_pa_soni.jpg',$lbody2+$lbody4+$lbody4-20,203,$lbody4+48,20);
     /*$this->Image('http://'.$_SERVER['HTTP_HOST'].'/mpd/include/qrcode/generate-qr.php?param='.
     		$data['njop_pbb']."_".
     		$data['registration_no']."_".
     		str_replace(" ","-",dateToString($data['creation_date']))
     		,160,195,25,25,'PNG');*/
     $this->SetFont('Times', 'B', 12);
     $this->Cell($lbody2, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "an. KEPALA DINAS PELAYANAN PAJAK", "", 0, 'C');
     $this->Cell($lbody2, $this->height, "", "", 0, 'C');
     $this->Ln();
     $this->SetFont('Times', 'B', 12);
     $this->Cell($lbody2, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "Kepala Bidang Pajak Pendaftaran", "", 0, 'C');
     $this->Cell($lbody2, $this->height, "", "", 0, 'C');
     $this->Ln();
     $this->Cell($this->lengthCell, $this->height, "", "", 0, 'L');
     $this->Ln();
     $this->Cell($this->lengthCell, $this->height, "", "", 0, 'L');
     $this->Ln();
     $this->Cell($this->lengthCell, $this->height, "", "", 0, 'L');
     $this->Ln();
     $this->Cell($this->lengthCell, $this->height, "", "", 0, 'L');
     $this->Ln();
     $this->SetFont('Times', 'B', 12);
     $this->Cell($lbody2, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'L');
     $this->Cell($lbody4 - 5, $this->height, "", "", 0, 'C');
     //$this->Cell($lbody4+10, $this->height, "H. SONI BAKHTIYAR, S.Sos, M.Si", "B", 0, 'C');
     $this->Cell($lbody4 + 10, $this->height, "Drs. H. GUN GUN SUMARYANA", "B", 0, 'C');
     $this->Cell($lbody2 - 5, $this->height, "", "", 0, 'C');
     $this->Ln();
     $this->SetFont('Times', 'B', 12);
     $this->Cell($lbody2, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'L');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     //$this->Cell($lbody4 - 2, $this->height, "NIP. 19750625 199403 1 001", "", 0, 'C'); //isi nip
     $this->Cell($lbody4 - 2, $this->height, "NIP. 19700806 199101 1 001", "", 0, 'C');
     //isi nip
     $this->Cell(2, $this->height, "", "", 0, 'L');
     $this->Cell($lbody2, $this->height, "", "", 0, 'C');
     $this->Ln();
     $this->SetFont('Times', 'BU', 12);
     $this->Ln();
     $this->Cell(3, $this->height, "", "", 0, 'L');
     $this->Cell("21", $this->height, "Tembusan,", "", 0, 'L');
     $this->SetFont('BKANT', '', 12);
     $this->Cell("", $this->height, "disampaikan kepada Yth. :", "", 0, 'L');
     $this->Ln();
     $this->SetFont('BKANT', '', 12);
     $this->Cell(3, $this->height, "", "", 0, 'L');
     $this->Cell("", $this->height, "1. Bapak Kepala Dinas Pelayanan Pajak (sebagai laporan);", "", 0, 'L');
     $this->Ln();
     $this->Cell(3, $this->height, "", "", 0, 'L');
     $this->Cell("", $this->height, "2. Bapak Kepala Badan Pertanahan Kota Bandung.", "", 0, 'L');
 }
 function PageCetak($data, $no_urut)
 {
     $this->AliasNbPages();
     $this->SetLeftMargin(10);
     $this->AddPage("P");
     $this->AddFont('BKANT');
     $this->SetFont('BKANT', '', 12);
     // $this->Image('../images/logo_pemda.png',25,17,25,25);
     $lheader = $this->lengthCell / 8;
     $lheader1 = $lheader * 1;
     $lheader2 = $lheader * 2;
     $lheader3 = $lheader * 3;
     $lheader4 = $lheader * 4;
     $lheader7 = $lheader * 7;
     $this->SetFont('BKANT', '', 12);
     $this->Image('../images/logo_pemda.png', 17, 13, 25, 25);
     $this->SetFont('TIMES', 'B', 14);
     $this->Cell(40, $this->height, "", "", 0, 'L');
     $this->Cell(181, $this->height, "PEMERINTAH KOTA BANDUNG", "", 0, 'C');
     $this->Ln();
     $this->SetFont('TIMES', 'B', 20);
     $this->Cell(40, $this->height + 10, "", "", 0, 'L');
     $this->Cell(181, $this->height + 10, "D I N A S  P E L A Y A N A N  P A J A K", "", 0, 'C');
     $this->Ln();
     $this->SetFont('BKANT', '', 12);
     $this->Cell(40, $this->height, "", "", 0, 'L');
     $this->Cell(181, $this->height, "Jalan Wastukancana No 2 Telp. 022 4235052 - Bandung", "", 0, 'C');
     $this->Ln(5);
     $this->Ln();
     $this->SetFont('BKANT', '', 12);
     $this->Cell($this->lengthCell, $this->height, "", "T", 100, 'L');
     $this->Ln();
     $lbody = $this->lengthCell / 4;
     $lbody1 = $lbody * 1;
     $lbody2 = $lbody * 2;
     $lbody3 = $lbody * 3;
     $this->SetWidths(array(21, 2, 50, 49));
     $this->SetAligns(array("L", "L", "L", "L"));
     $posy = $this->getY();
     $data["letter_no"] = trim($data["letter_no"]);
     if (!empty($data["letter_no"])) {
         $this->RowMultiBorderWithHeight(array("Nomor", ":", "", "-Disyanjak"), array("", "", "", ""), 2);
     } else {
         $this->RowMultiBorderWithHeight(array("Nomor", ":", "  " . $data["nomor_surat"], "-Disyanjak"), array("", "", "", ""), 2);
     }
     $this->SetWidths(array(21, 2, $this->lengthCell - 22));
     $this->SetAligns(array("L", "L", "L"));
     $posy = $this->getY();
     $this->RowMultiBorderWithHeight(array("Sifat", ":", "  Biasa"), array("", "", ""), 2);
     $this->RowMultiBorderWithHeight(array("Lampiran", ":", "  -"), array("", "", ""), 2);
     $this->RowMultiBorderWithHeight(array("Perihal", ":", "  Konfirmasi Data"), array("", "", ""), 2);
     $this->setY($posy - 12);
     $today = getdate();
     $lkepada = $this->lengthCell / 5;
     $lkepada2 = $lkepada * 2;
     $lkepada3 = $lkepada * 3 + 20;
     $this->Cell($lkepada3, $this->height, "", "", 0, 'L');
     $this->Cell($lkepada2 - 60, $this->height, "Bandung,", "", 0, 'L');
     $this->Cell(30, $this->height, dateToday(), "", 0, 'R');
     $this->Ln();
     $this->Cell($lkepada3, $this->height, "", "", 0, 'L');
     $this->Cell($lkepada2, $this->height, "Kepada Yth.", "", 0, 'L');
     $this->Ln();
     $this->SetAligns(array("L", "L"));
     $this->SetWidths(array($lkepada3, ""));
     $this->RowMultiBorderWithHeight(array("", $data['wp_name']), array("", ""), $this->height);
     $this->Cell($lkepada3, $this->height, "", "", 0, 'L');
     $this->Cell($lkepada2, $this->height, "Di ", "", 0, 'L');
     $this->Ln();
     $this->Cell($lkepada3, $this->height, "", "", 0, 'L');
     $this->Cell($lkepada2, $this->height, "          Bandung", "", 0, 'L');
     $this->Ln();
     // $this->Cell($lkepada3, $this->height, "", "L", 0, 'L');
     // $this->Cell($lkepada2, $this->height, "", "R", 0, 'C');
     // $this->Ln();
     $this->Cell($lkepada3, $this->height, "", "", 0, 'L');
     $this->Cell($lkepada2, $this->height, "", "", 0, 'C');
     $this->Ln();
     // $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'C');
     // $this->newLine();
     //$this->Cell($this->lengthCell, $this->height, "SURAT TEGURAN", "", 0, 'C');
     $this->SetFont('BKANT', '', 12);
     /*$this->Cell($this->lengthCell, $this->height, "Nomor: ".$data["letter_no"], "LR", 0, 'C');
     		$this->newLine();*/
     //$this->Cell(20, $this->height, "", "", 0, 'L');
     $this->tulis2("Dengan ini dipermaklumkan bahwa berdasarkan data pembukuan kami hingga saat ini", "FJ");
     $this->tulis("saudara :", "L");
     $this->tulis("", "L");
     $this->SetAligns(array("L", "L", "L", "L"));
     $this->SetWidths(array("34", "30", "2", ""));
     $this->RowMultiBorderWithHeight(array("", "Nama", ":", "  " . $data['wp_name']), array("", "", "", ""), 3);
     $this->SetAligns(array("L", "L", "L", "L"));
     $this->SetWidths(array("34", "30", "2", ""));
     $this->RowMultiBorderWithHeight(array("", "Alamat", ":", "  " . $data['wp_address_name']), array("", "", "", ""), 3);
     $this->tulis2("Dengan Objek Pajak:", "L");
     $this->tulis("", "L");
     $this->SetAligns(array("L", "L", "L", "L"));
     $this->SetWidths(array("34", "30", "2", ""));
     $this->RowMultiBorderWithHeight(array("", "Alamat", ":", "  " . $data['object_address_name']), array("", "", "", ""), 3);
     $this->SetAligns(array("L", "L", "L", "L"));
     $this->SetWidths(array("34", "30", "2", ""));
     $this->RowMultiBorderWithHeight(array("", "NOP", ":", "  " . $data['njop_pbb']), array("", "", "", ""), 3);
     //$this->newLine();
     //$this->Cell(10, $this->height, "", "", 0, 'L');
     $this->tulis2("Sampai Saat ini belum melakukan pembayaran pajak BPHTB Tahun " . date("Y") . " dengan Pajak", "FJ");
     //$this->Cell("", $this->height, "Sampai Saat ini belum melakukan pembayaran pajak BPHTB Tahun ".date("Y")." dengan Pajak Terutang", "", 0, "FJ");
     //$this->Cell("20", $this->height, date("Y"), "", 0, 'L');
     //$this->Cell("15", $this->height, "dengan Pajak Terutang", "", 0, 'L');
     //$this->Ln();
     $this->tulis("Terutang sebesar Rp. " . number_format($data['bphtb_amt_final'], 2, ",", ".") . " yang berdasarkan : ", "L");
     //$this->Cell(10, $this->height, "", "", 0, 'L');
     //$this->Cell("68", $this->height, "Rp. ", "", 0, "J");
     //$this->Cell("20", $this->height, number_format($data['bphtb_amt_final'],2,",","."), "", 0, 'L');
     $this->Ln();
     $this->SetAligns(array("L", "L", "L", "L"));
     $this->SetWidths(array(34, "80", "2", ""));
     $this->RowMultiBorderWithHeight(array("", "Nota Verifikasi BPHTB No. Registrasi", ":", "  " . $data['registration_no']), array("", "", "", ""), 3);
     $this->SetAligns(array("L", "L", "L", "L"));
     $this->SetWidths(array(34, "80", "2", ""));
     $this->RowMultiBorderWithHeight(array("", "Tanggal", ":", "  " . dateToString($data['creation_date'])), array("", "", "", ""), 3);
     //$this->newLine();
     $this->tulis2("Berkenaan dengan hal tersebut di atas, kami mohon agar saudara dapat hadir selambat-", "FJ");
     $this->tulis("lambatnya 7 (tujuh) hari setelah diterimanya surat ini, setiap hari kerja :", "L");
     $this->Ln();
     $this->SetAligns(array("L", "L", "L", "L"));
     $this->SetWidths(array("34", "30", "2", ""));
     $this->RowMultiBorderWithHeight(array("", "Hari", ":", "  Senin-Jum'at"), array("", "", "", ""), 3);
     $this->SetAligns(array("L", "L", "L", "L"));
     $this->SetWidths(array("34", "30", "2", ""));
     $this->RowMultiBorderWithHeight(array("", "Jam", ":", "  08.00 s.d 16.00 WIB"), array("", "", "", ""), 3);
     $this->SetAligns(array("L", "L", "L", "L"));
     $this->SetWidths(array("34", "30", "2", "163"));
     $this->RowMultiBorderWithHeight(array("", "Tempat", ":", "  Seksi Penyelesaian Piutang Pajak Bidang Pajak Pendaftaran"), array("", "", "", ""), 2);
     $this->Cell(66, $this->height, "", "", 0, 'L');
     $this->Cell("", $this->height, "  DINAS PELAYANAN PAJAK Kota Bandung ", "", 0, "J");
     $this->Ln();
     $this->Cell(66, $this->height, "", "", 0, 'L');
     $this->Cell("", $this->height, "  Jl. Wastukecana No. 2 Bandung.", "", 0, "J");
     $this->newLine();
     //$this->tulis("Apabila saudara telah melaksanakan pembayaran pajak tersebut, kami mohon untuk dapat memperlihatkan", "FJ");
     //$this->tulis("SSB (Surat Setoran BPHTB) yang telah divalidasi beserta Resi Pembayaran dari Bank dengan melampirkan", "FJ");
     //$this->tulis("photo copy dokumen yang dimaksud.", "L");
     //$this->tulis("", "L");
     //$this->newLine();
     $this->tulis2("Demikian agar menjadi maklum, atas perhatian dan kerjasamanya kami ucapkan terima kasih.", "FJ");
     /*$this->SetAligns(array("L","L","L"));
     		$this->SetWidths(array("10","","20"));
     		$this->RowMultiBorderWithHeight(
     			array("",
     				"Sampai Saat ini belum melakukan pembayaran pajak BPHTB Tahun 2014 dengan Pajak Terutang sebesar Rp ",
     				"-"
     			),
     			array("",
     				"",
     				""
     			),
     			2
     		);
     		*/
     //$this->newLine();
     // Tabel
     $ltable = ($this->lengthCell - 15) / 14;
     $ltable1 = $ltable * 1;
     $ltable2 = $ltable * 2;
     $ltable3 = $ltable * 3;
     $ltable6 = $ltable * 6;
     $ltable4 = $ltable * 4;
     /*
     $this->SetWidths(array(10, $ltable4, $ltable2, $ltable2, $ltable3, $ltable3, 5));
     $this->SetAligns(array("L", "C", "C", "C", "C", "C", "L"));
     
     $this->RowMultiBorderWithHeight(
     	array("",
     		"JENIS PAJAK",
     		"TAHUN",
     		"BULAN",
     		"SPTPD",
     		"TGL. SETOR",
     		""
     	),
     	array("LR",
     		"TBLR",
     		"TBLR",
     		"TBLR",
     		"TBLR",
     		"TBLR",
     		"LR"
     	),
     	$this->height
     );
     
     
     $this->SetWidths(array(10, $ltable4, $ltable2, $ltable2, $ltable3, $ltable3, 5));
     $this->SetAligns(array("L", "C", "C", "L", "C", "C", "L"));
     $tahun = explode(" ",$data["periode"]);
     
     $bulan_periode = explode(",",$data['debt_period_code']);
     $bulan_string='';
     $i=0;
     foreach($bulan_periode as $item ){
     	$bulan = explode(" ",$item);
     	$bulan_string.= $bulan[0];
     	$i++;
     	if(!empty($bulan_periode[$i])){
     		$bulan_string.="\n";
     	}
     }
     $this->RowMultiBorderWithHeight(
     	array("",
     		$data["vat_code"],
     		$tahun[1],
     		$bulan_string,
     		$data["tap_no"],
     		"-",
     		""
     	),
     	array("LR",
     		"TBLR",
     		"TBLR",
     		"TBLR",
     		"TBLR",
     		"TBLR",
     		"LR"
     	),
     	$this->height
     );
     
     $lbody = $this->lengthCell / 4;
     $lbody1 = $lbody * 1;
     $lbody2 = $lbody * 2;
     $lbody3 = $lbody * 3;
     $data["terbilang"]=trim($data["terbilang"]);
     $this->Cell(20, $this->height, "", "L", 0, 'L');
     $this->Cell($lbody1 - 20,"", "", 0, 'L');	
     $this->Cell($lbody3, $this->height, "", "R", 0, 'L');
     $this->Ln();
     */
     //$this->tulis("Sampai saat ini belum melunasi pembayaran pajak.", "L");
     /*$this->tulis("", "L");
     		$this->tulis("Untuk mencegah tindakan penagihan dengan Surat Paksa berdasarkan Undang-undang Nomor 28 Tahun", "FJ");
     		$this->tulis("2009 dan Peraturan Daerah Nomor 20 Tahun 2011 Ps 70, maka diminta kepada Saudara agar melunasi", "FJ");
     		$this->tulis("jumlah tunggakan dalam waktu 7 (tujuh) hari setelah Surat Teguran ini. Setelah batas waktu tersebut", "FJ");
     		$this->tulis("tindakan penagihan akan ditindaklanjuti dengan penyerahan Surat Paksa.", "L");
     		$this->tulis("", "L");
     		$this->tulis("Apabila saudara telah melaksanakan pembayaran pajak tersebut, kami mohon untuk dapat memperlihatkan", "FJ");
     		$this->tulis("SSPD yang telah divalidasi dengan melampirkan photo copy dokumen yang dimaksud.", "L");
     		$this->tulis("", "L");
     		$this->tulis("Demikian agar menjadi maklum, atas perhatian dan kerjasamanya kami ucapkan terima kasih.", "L");
     		*/
     // $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'L');
     // $this->Ln();
     // $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'L');
     // $this->Ln();
     $this->Cell($this->lengthCell, $this->height, "", "", 0, 'L');
     //$this->Ln();
     $lbody = $this->lengthCell / 16;
     $lbody2 = $lbody * 2;
     $lbody4 = $lbody * 4;
     $this->Cell($this->lengthCell, $this->height, "", "", 0, 'L');
     $this->Ln();
     //$this->Cell($lbody2, $this->height, "", "L", 0, 'C');
     //$this->Cell($lbody4, $this->height, "", "", 0, 'C');
     //$this->Cell($lbody4, $this->height, "", "", 0, 'C');
     //$this->Cell($lbody4, $this->height, "Bandung, " .$data['letter_date_txt'] /*. $data["tanggal"]*/, "", 0, 'C');
     //$this->Cell($lbody2, $this->height, "", "R", 0, 'C');
     //$this->Ln();
     $this->Cell($lbody2, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "an. KEPALA DINAS PELAYANAN PAJAK", "", 0, 'C');
     $this->Cell($lbody2, $this->height, "", "", 0, 'C');
     $this->Ln();
     $this->Cell($lbody2, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "Kepala Bidang Pajak Pendaftaran", "", 0, 'C');
     $this->Cell($lbody2, $this->height, "", "", 0, 'C');
     $this->Ln();
     $this->Cell($this->lengthCell, $this->height, "", "", 0, 'L');
     $this->Ln();
     $this->Cell($this->lengthCell, $this->height, "", "", 0, 'L');
     $this->Ln();
     $this->Cell($this->lengthCell, $this->height, "", "", 0, 'L');
     $this->Ln();
     $this->Cell($this->lengthCell, $this->height, "", "", 0, 'L');
     $this->Ln();
     $this->Cell($lbody2, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'L');
     $this->Cell($lbody4 - 5, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4 + 10, $this->height, "H. SONI BAKHTIYAR, S.Sos, M.Si", "B", 0, 'C');
     $this->Cell($lbody2 - 5, $this->height, "", "", 0, 'C');
     $this->Ln();
     $this->Cell($lbody2, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'L');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4 - 2, $this->height, "NIP. 19750625 199403 1 001", "", 0, 'C');
     //isi nip
     $this->Cell(2, $this->height, "", "", 0, 'L');
     $this->Cell($lbody2, $this->height, "", "", 0, 'C');
     $this->Ln();
     $this->SetFont('BKANT', '', 12);
     $this->Ln();
     $this->Cell(10, $this->height, "", "", 0, 'L');
     $this->Cell("", $this->height, "Tembusan, disampaikan kepada Yth. :", "", 0, 'L');
     $this->Ln();
     $this->Cell(10, $this->height, "", "", 0, 'L');
     $this->Cell("", $this->height, "Bapak Kepala Dinas Pelayanan Pajak (sebagai laporan)", "", 0, 'L');
 }
 function PageCetak($data, $no_urut)
 {
     $this->AliasNbPages();
     $this->SetLeftMargin(10);
     $this->SetTopMargin(5);
     $this->AddPage("P");
     $this->AddFont('BKANT');
     $this->SetFont('BKANT', '', 12);
     // $this->Image('../images/logo_pemda.png',25,17,25,25);
     $lheader = $this->lengthCell / 8;
     $lheader1 = $lheader * 1;
     $lheader2 = $lheader * 2;
     $lheader3 = $lheader * 3;
     $lheader4 = $lheader * 4;
     $lheader7 = $lheader * 7;
     $this->SetFont('BKANT', '', 12);
     $this->Image('../images/logo_pemda.png', 17, 6, 25, 25);
     $this->SetFont('TIMES', 'B', 14);
     $this->Cell(40, $this->height, "", "", 0, 'L');
     $this->Cell(181, $this->height, "PEMERINTAH KOTA BANDUNG", "", 0, 'C');
     $this->Ln();
     $this->SetFont('TIMES', 'B', 20);
     $this->Cell(40, $this->height + 10, "", "", 0, 'L');
     $this->Cell(181, $this->height + 10, "D I N A S  P E L A Y A N A N  P A J A K", "", 0, 'C');
     $this->Ln();
     $this->SetFont('BKANT', '', 12);
     $this->Cell(40, $this->height, "", "", 0, 'L');
     $this->Cell(181, $this->height, "Jalan Wastukancana No 2 Telp. 022 4235052 - Bandung", "", 0, 'C');
     $this->Ln(5);
     $this->Ln();
     $this->SetFont('BKANT', '', 12);
     $this->Cell($this->lengthCell, $this->height, "", "T", 100, 'L');
     $this->Ln();
     $lbody = $this->lengthCell / 4;
     $lbody1 = $lbody * 1;
     $lbody2 = $lbody * 2;
     $lbody3 = $lbody * 3;
     $this->SetWidths(array(21, 2, 38, 49));
     $this->SetAligns(array("L", "L", "L", "L"));
     $posy = $this->getY();
     $this->RowMultiBorderWithHeight(array("Nomor", ":", "", "-Disyanjak"), array("", "", "", ""), 2);
     $this->SetWidths(array(21, 2, $this->lengthCell - 22));
     $this->SetAligns(array("L", "L", "L"));
     $posy = $this->getY();
     $this->RowMultiBorderWithHeight(array("Sifat", ":", "  Biasa"), array("", "", ""), 2);
     $this->RowMultiBorderWithHeight(array("Lampiran", ":", "  -"), array("", "", ""), 2);
     $this->RowMultiBorderWithHeight(array("Perihal", ":", "  Konfirmasi Pembayaran BPHTB"), array("", "", ""), 2);
     $this->setY($posy - 12);
     $today = getdate();
     $lkepada = $this->lengthCell / 5;
     $lkepada2 = $lkepada * 2;
     $lkepada3 = $lkepada * 3 + 20;
     $this->Cell($lkepada3, $this->height, "", "", 0, 'L');
     $this->Cell($lkepada2 - 60, $this->height, "Bandung,", "", 0, 'L');
     $this->Cell(30, $this->height, dateToday(), "", 0, 'R');
     $this->Ln();
     $this->Cell($lkepada3, $this->height, "", "", 0, 'L');
     $this->Cell($lkepada2, $this->height, "Kepada Yth.", "", 0, 'L');
     $this->Ln();
     $this->SetAligns(array("L", "L"));
     $this->SetWidths(array($lkepada3, ""));
     $this->RowMultiBorderWithHeight(array("", substr($data['wp_name'], 0, 23)), array("", ""), $this->height);
     $this->SetAligns(array("L", "L"));
     $this->SetWidths(array($lkepada3, "65"));
     $this->RowMultiBorderWithHeight(array("", $data['wp_address']), array("", ""), $this->height);
     $this->Cell($lkepada3, $this->height, "", "", 0, 'L');
     $this->Cell($lkepada2, $this->height, "Di ", "", 0, 'L');
     $this->Ln();
     $this->Cell($lkepada3, $this->height, "", "", 0, 'L');
     /*$pieces = explode("KABUPATEN ", $data['region_name']);
     		$result = join("",$pieces);
     		$pieces = explode("KOTA ", $result);
     		$result = join("",$pieces);
     		$pieces = explode(" KOTA", $result);
     		$result = join("",$pieces);*/
     $result = "BANDUNG";
     $this->Cell($lkepada2, $this->height, "          " . $result, "", 0, 'L');
     $this->Ln();
     $this->Cell($lkepada3, $this->height, "", "", 0, 'L');
     $this->Cell($lkepada2, $this->height, "", "", 0, 'C');
     $this->Ln();
     $this->SetFont('BKANT', '', 12);
     $this->Ln();
     $this->SetWidths(array("25", 200));
     $this->RowMultiBorderWithHeight(array("", "Disampaikan dengan hormat, berdasarkan data pelimpahan dari Kanwil DJP Jabar I kepada Dinas Pelayanan Pajak Kota Bandung hingga saat ini tercatat, bahwa subjek dan objek pajak :"), array("", ""), 5);
     $this->tulis("", "L");
     $this->SetAligns(array("L", "L", "L", "L"));
     $this->SetWidths(array("54", "30", "2", ""));
     $this->SetAligns(array("L", "L", "L", "L"));
     $this->SetWidths(array("35", "55", "2", ""));
     $this->RowMultiBorderWithHeight(array("", "Nama", ":", "  " . $data['wp_name_old']), array("", "", "", ""), 3);
     $this->SetAligns(array("L", "L", "L", "L"));
     $this->SetWidths(array("35", "55", "2", ""));
     $this->RowMultiBorderWithHeight(array("", "Alamat", ":", "  " . $data['wp_address_old']), array("", "", "", ""), 3);
     $this->SetAligns(array("L", "L", "L", "L"));
     $this->SetWidths(array("35", "55", "2", ""));
     $this->RowMultiBorderWithHeight(array("", "NOP", ":", "  " . $data['nop']), array("", "", "", ""), 3);
     $this->SetWidths(array(25, 170));
     $this->RowMultiBorderWithHeight(array("", "Belum melakukan pembayaran pajak BPHTB dengan Nilai sebesar"), array("", ""), 5);
     $this->SetWidths(array(25, 170));
     $this->RowMultiBorderWithHeight(array("", "Rp. " . number_format($data['tunggakan'], 2, ",", ".") . " sesuai dengan : "), array("", ""), 5);
     $this->Ln();
     $this->SetAligns(array("L", "L", "L"));
     $this->SetWidths(array("35", "55", "2"));
     $this->RowMultiBorderWithHeight(array("", "Dasar Penagihan", ":", "  " . $data['dasar_penagihan']), array("", "", "", ""), 3);
     $this->SetAligns(array("L", "L", "L"));
     $this->SetWidths(array("35", "55", "2"));
     $this->RowMultiBorderWithHeight(array("", "Nomor", ":", "  " . $data['nomor']), array("", "", "", ""), 3);
     $this->SetAligns(array("L", "L", "L", "L"));
     $this->SetWidths(array("35", "55", "2", ""));
     $this->RowMultiBorderWithHeight(array("", "Tanggal", ":", "  " . $data['tgl_terbit']), array("", "", "", ""), 3);
     $this->SetWidths(array(25, 180));
     $this->RowMultiBorderWithHeight(array("", "Berkenaan dengan hal tersebut di atas, dimohon untuk hadir memberikan penjelasan tentang realisasi pembayaran pajak BPHTB terutang selambat-lambatnya 2 (dua) hari setelah diterimanya surat ini, pada :"), array("", ""), 5);
     $this->Ln();
     $this->SetAligns(array("L", "L", "L", "L"));
     $this->SetWidths(array("45", "95", "2", ""));
     $this->SetAligns(array("L", "L", "L", "L"));
     $this->SetWidths(array("35", "55", "2", "163"));
     $this->RowMultiBorderWithHeight(array("", "Tempat", ":", "  Seksi Penyelesaian Piutang Pajak Bidang Pajak Pendaftaran"), array("", "", "", ""), 2);
     $this->Cell(92, $this->height, "", "", 0, 'L');
     $this->Cell("", $this->height, "  DINAS PELAYANAN PAJAK Kota Bandung ", "", 0, "J");
     $this->Ln();
     $this->Cell(92, $this->height, "", "", 0, 'L');
     $this->Cell("", $this->height, "  Jl. Wastukencana No. 2 Bandung.", "", 0, "J");
     $this->Ln(6);
     $this->RowMultiBorderWithHeight(array("", "Jam", ":", "  08.00 s.d 16.00 WIB"), array("", "", "", ""), 3);
     $this->SetWidths(array(25, 180));
     $this->RowMultiBorderWithHeight(array("", "Demikian agar menjadi maklum, atas perhatian dan kerjasamanya diucapkan terima kasih."), array("", ""), 4);
     // Tabel
     $ltable = ($this->lengthCell - 15) / 14;
     $ltable1 = $ltable * 1;
     $ltable2 = $ltable * 2;
     $ltable3 = $ltable * 3;
     $ltable6 = $ltable * 6;
     $ltable4 = $ltable * 4;
     $this->Cell($this->lengthCell, $this->height, "", "", 0, 'L');
     //$this->Ln();
     $lbody = $this->lengthCell / 16;
     $lbody2 = $lbody * 2;
     $lbody4 = $lbody * 4;
     $this->Cell($this->lengthCell, $this->height, "", "", 0, 'L');
     $this->Ln();
     $this->Image('../images/ttd_pa_soni.jpg', $lbody2 + $lbody4 + $lbody4 - 20, 203, $lbody4 + 48, 20);
     $this->SetFont('Times', 'B', 12);
     $this->Cell($lbody2, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "an. KEPALA DINAS PELAYANAN PAJAK", "", 0, 'C');
     $this->Cell($lbody2, $this->height, "", "", 0, 'C');
     $this->Ln();
     $this->SetFont('Times', 'B', 12);
     $this->Cell($lbody2, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "Kepala Bidang Pajak Pendaftaran", "", 0, 'C');
     $this->Cell($lbody2, $this->height, "", "", 0, 'C');
     $this->Ln();
     $this->Cell($this->lengthCell, $this->height, "", "", 0, 'L');
     $this->Ln();
     $this->Cell($this->lengthCell, $this->height, "", "", 0, 'L');
     $this->Ln();
     $this->Cell($this->lengthCell, $this->height, "", "", 0, 'L');
     $this->Ln();
     $this->Cell($this->lengthCell, $this->height, "", "", 0, 'L');
     $this->Ln();
     $this->SetFont('Times', 'B', 12);
     $this->Cell($lbody2, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'L');
     $this->Cell($lbody4 - 5, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4 + 10, $this->height, "H. SONI BAKHTIYAR, S.Sos, M.Si", "B", 0, 'C');
     $this->Cell($lbody2 - 5, $this->height, "", "", 0, 'C');
     $this->Ln();
     $this->SetFont('Times', 'B', 12);
     $this->Cell($lbody2, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'L');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4 - 2, $this->height, "NIP. 19750625 199403 1 001", "", 0, 'C');
     //isi nip
     $this->Cell(2, $this->height, "", "", 0, 'L');
     $this->Cell($lbody2, $this->height, "", "", 0, 'C');
     $this->Ln();
     /*$this->Image('http://172.16.20.2:81/mpd/include/qrcode/generate-qr.php?param='.
     		$data['nop']."_".
     		$data['nomor']
     		,15,200,30,30,'PNG');
     		*/
     /*$this->Image('http://172.16.20.2:81/mpd/include/qrcode/generate-qr.php?param='.
     		$data['nop']."_".
     		$data['nomor']
     		,15,200,30,30,'PNG');*/
     $this->SetFont('Times', 'BU', 12);
     $this->Ln();
     $this->Cell(3, $this->height, "", "", 0, 'L');
     $this->Cell("21", $this->height, "Tembusan,", "", 0, 'L');
     $this->SetFont('BKANT', '', 12);
     $this->Cell("", $this->height, "disampaikan kepada Yth. :", "", 0, 'L');
     $this->Ln();
     $this->SetFont('BKANT', '', 12);
     $this->Cell(3, $this->height, "", "", 0, 'L');
     $this->Cell("", $this->height, "1. Bapak Kepala Dinas Pelayanan Pajak (sebagai laporan);", "", 0, 'L');
     $this->Ln();
     $this->Cell(3, $this->height, "", "", 0, 'L');
     $this->Cell("", $this->height, "2. Bapak Kepala Badan Pertanahan Kota Bandung.", "", 0, 'L');
 }