$this->Cell(12/100*$width,$height,'PP NO','',0,'L');
                        $this->Cell(2/100*$width,$height,':','',0,'L');
                        $this->Cell(1/100*$width,$height,$column,'',0,'L');		
                        $this->Cell(25/100*$width,$height,' ','',0,'L');
                        $this->SetFont('Arial','B',10);
                        $this->Cell(14/100*$width,$height,$_SESSION['lang']['tanggal'],'',0,'L');
                        $this->Cell(2/100*$width,$height,':','',0,'L');
                        $this->Cell(1/100*$width,$height,$tgl,'',1,'L');*/
        $this->Ln(20);
    }
}
#====================== Prepare PDF Setting
$pdf = new masterpdf('P', 'pt', 'A4');
$width = $pdf->w - $pdf->lMargin - $pdf->rMargin;
$height = 12;
$pdf->SetFont('Arial', 'B', 8);
$pdf->AddPage();
$awalXjudulno = $pdf->GetX();
$awalYjudulatas = $pdf->GetY();
$pdf->Cell(20, 1.5 * $height, 'No.', 'TBLR', 0, 'C');
$awalXkdbrg = $pdf->GetX();
$pdf->Cell(60, 1.5 * $height, $_SESSION['lang']['kodebarang'], 'TBLR', 0, 'L');
$awalXnmbrgjudul = $pdf->GetX();
$pdf->Cell(165, 1.5 * $height, $_SESSION['lang']['namabarang'], 'TBLR', 0, 'C');
$awalXjum = $pdf->GetX();
$pdf->Cell(35, 1.5 * $height, $_SESSION['lang']['jumlah'], 'TBLR', 0, 'L');
$awalXsat = $pdf->GetX();
$pdf->Cell(35, 1.5 * $height, $_SESSION['lang']['satuan'], 'TBLR', 0, 'C');
$awalXreq = $pdf->GetX();
$pdf->Cell(40, 1.5 * $height, 'Required', 'TBLR', 0, 'C');
$awalXket = $pdf->GetX();
         $this->Cell(60, 1.5 * $height, $_SESSION['lang']['nomorperkiraan'], 'TBLR', 0, 'C');
         $this->Cell(260, 1.5 * $height, $_SESSION['lang']['namaperkiraan'], 'TBLR', 0, 'C');
         $this->Cell(38, 1.5 * $height, $_SESSION['lang']['tipe'], 'TBLR', 0, 'C');
         $this->Cell(45, 1.5 * $height, $_SESSION['lang']['level'], 'TBLR', 0, 'C');
         $this->Cell(47, 1.5 * $height, $_SESSION['lang']['matauang'], 'TBLR', 0, 'C');
         $this->Cell(40, 1.5 * $height, $_SESSION['lang']['tampilkan'], 'TBLR', 0, 'C');
         $this->Cell(40, 1.5 * $height, $_SESSION['lang']['detail'], 'TBLR', 0, 'C');
         $this->Ln();
         $this->Ln();
     }
 }
 #====================== Prepare PDF Setting
 $pdf = new masterpdf('P', 'pt', 'A4');
 $width = $pdf->w - $pdf->lMargin - $pdf->rMargin;
 $height = 12;
 $pdf->SetFont('Arial', '', 8);
 $pdf->AddPage();
 # Generate Data
 #print_r($result);
 #exit;
 #foreach($result as $row) {
 #    foreach($row as $data) {
 #        $pdf->Cell($width/count($header),$height,$data,'',0,'L');
 #    }
 #    $pdf->Ln();
 #}
 foreach ($result as $data) {
     $pdf->Cell(60, $height, $data['noakun'], '', 0, 'L');
     if ($_SESSION['language'] == 'EN') {
         $pdf->Cell(260, $height, $data['namaakun1'], '', 0, 'L');
     } else {