Example #1
0
<?php

$tahun = date('Y');
$pdf = new Cetak();
$pdf->FPDF('L', 'mm', 'Legal');
$pdf->AddPage();
$pdf->AliasNbPages();
//$pdf->SetMargins(100,150,100);
$pdf->SetFont('Arial', 'B', '9');
$pdf->Cell(330, 6, 'LAPORAN PERKEMBANGAN KEGIATAN DI LINGKUNGAN DINAS PEKERJAAN UMUM KABUPATEN PEMALANG TAHUN ANGGARAN ' . $tahun, 0, 0, 'C');
$pdf->Ln();
$pdf->Cell(330, 6, 'PELAKSANAAN SAMPAI DENGAN BULAN : ' . strtoupper($this->fungsiku->bulan_full((int) $bulan)) . ' ' . $tahun, 0, 0, 'C');
$pdf->Ln(10);
//$pdf->Cell(341,5,'Hal : '.$pdf->PageNo().' dari {nb}',0,0,'R');
$pdf->setFont('Arial', 'B', '7');
$pdf->SetWidths(array('7', '40'));
$pdf->SetAligns(array('C', 'C'));
$pdf->Row(array("No.", "Kode Program dan\nKegiatan\n "));
$pdf->SetY($pdf->GetY() - 15);
$pdf->SetX($pdf->GetX() + 47);
$pdf->Cell(75, 15, 'Program dan Kegiatan', 1, 0, 'C');
$pdf->Cell(50, 15, 'Anggaran', 1, 0, 'C');
$pdf->Cell(45, 6, 'Pelaksanaan Kegiatan', 1, 0, 'C');
$pdf->Cell(45, 6, 'Realisasi Penyerapan', 1, 0, 'C');
$pdf->SetWidths(array('15', '15', '15', '13', '13'));
$pdf->SetAligns(array('C', 'C', 'C', 'C', 'C'));
$pdf->Row(array('Realisasi Fisik', "Target Serapan\nper Bulan", "Kesenjangan per bulan", "Sudah\nLap", "Belum\nLap"));
$pdf->Ln();
$pdf->SetY($pdf->GetY() - 14);
$pdf->SetX($pdf->GetX() + 172);
$pdf->Cell(21, 9, 'Swakelola', 1, 0, 'C');
Example #2
0
<?php

$tahun = date('Y');
$pdf = new Cetak();
$pdf->FPDF('L', 'mm', 'Legal');
$pdf->AddPage();
$pdf->AliasNbPages();
//$pdf->SetMargins(100,150,100);
$pdf->SetFont('Arial', 'B', '8');
$pdf->Cell(330, 4, 'LAPORAN KEMAJUAN PER TRIWULAN ', 0, 0, 'C');
$pdf->Ln();
$pdf->Cell(330, 4, 'DANA ALOKASI KHUSUS (DAK)', 0, 0, 'C');
$pdf->Ln();
$pdf->Cell(330, 4, 'DINAS PEKERJAAN UMUM KABUPATEN PEMALANG TAHUN ANGGARAN ' . $tahun, 0, 0, 'C');
$pdf->Ln();
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(50, 4, 'Propinsi ', 0, 0);
$pdf->Cell(5, 4, ':', 0, 0);
$pdf->Cell(50, 4, 'Jawa Tengah', 0, 0);
$pdf->Ln();
$pdf->Cell(50, 4, 'Kabupaten/Kota ', 0, 0);
$pdf->Cell(5, 4, ':', 0, 0);
$pdf->Cell(50, 4, 'Kabupaten Pemalang', 0, 0);
$pdf->Ln();
$pdf->Cell(50, 4, 'Bulan ', 0, 0);
$pdf->Cell(5, 4, ':', 0, 0);
$pdf->Cell(50, 4, $this->fungsiku->bulan_full((int) $bulan), 0, 0);
$pdf->Ln(8);
$pdf->SetFont('Arial', 'B', 7);
$pdf->Cell(5, 20, 'No', 1, 0, 'C');
$pdf->Cell(70, 20, 'KEGIATAN', 1, 0, 'C');