Example #1
0
 function Header()
 {
     // Logo
     $this->Image('public/images/Logo_Depkeu.jpg', 1.2, 1.2, 2, 2);
     // Times bold 13
     $this->SetFont('Times', 'B', 14);
     // Move to the right
     $this->Cell(0.5, 0.6, '', '', 0);
     // Title 1
     $this->Cell(18.3, 0.6, 'KEMENTERIAN KEUANGAN REPUBLIK INDONESIA', '', 1, 'C');
     // Times bold 12
     $this->SetFont('Times', 'B', 12);
     // Move to the right
     $this->Cell(0.5, 0.6, '', '', 0);
     // Title 2
     $this->Cell(18.3, 0.6, 'DIREKTORAT JENDERAL PERBENDAHARAAN', '', 1, 'C');
     // Times bold 12
     $this->SetFont('Times', 'B', 12);
     // Move to the right
     $this->Cell(0.5, 0.6, '', '', 0);
     @$this->Cell(18.3, 0.6, Kantor::getKanwil(), '', 1, 'C');
     // Times bold 12
     $this->SetFont('Times', '', 11);
     // Move to the right
     $this->Cell(0.5, 0.5, '', '', 0);
     @$this->Cell(18.3, 0.5, Kantor::getNamaKPPN(), '', 1, 'C');
     // Times  8
     @$this->SetFont('Times', '', 8);
     // Move to the right
     $this->Cell(0.5, 0.4, '', '', 0);
     @($almKppn = Kantor::getAlamat() . " Telepon: " . Kantor::getTelepon() . " Faksimile: " . Kantor::getFaksimile());
     @$this->Cell(18.3, 0.4, $almKppn, '', 1, 'C');
     // Move to the right
     $this->Cell(0.5, 0.4, '', 'B', 0);
     @($webKppn = "Website: " . Kantor::getWebsite() . " Email: " . Kantor::getEmail() . " SMS Gateway: " . Kantor::getSmsGateway());
     $this->Cell(18.3, 0.4, $webKppn, 'B', 1, 'C');
     // Draw line
     //$this->Line(1.0,3.95,20.0,3.95);
     //$this->Line(1.0,4.0,20.0,4.0);
     // Line break
     $this->Cell(18.8, 0.1, '', 'B', 1, 'L');
 }