Ejemplo n.º 1
0
 $title .= " " . $_SESSION['lang']['noreferensi'] . ": " . $noref;
 $align = explode(",", "L,L,L,R,R,L");
 $length = explode(",", "7,25,38,8,8,13");
 $pdf = new zPdfMaster('L', 'pt', 'A4');
 $pdf->SetFont('Arial', '', 8);
 $pdf->setAttr1($title, $align, $length, $colPdf);
 $width = $pdf->w - $pdf->lMargin - $pdf->rMargin;
 $height = 12;
 $pdf->AddPage();
 $pdf->SetFillColor(255, 255, 255);
 foreach ($data as $row) {
     $i = 0;
     $awalY = $pdf->GetY();
     $awalX = $pdf->GetX();
     $currentX = $pdf->GetX();
     $pdf->SetY($awalY);
     $pdf->SetX($currentX);
     $pdf->MultiCell($length[0] / 100 * $width, $height, $row['noakun'], '0', $align[0]);
     $pdf->SetY($awalY);
     $pdf->SetX($currentX + $length[0] / 100 * $width);
     $currentX = $pdf->GetX();
     $pdf->MultiCell($length[1] / 100 * $width, $height, $kamusakun[$row['noakun']], '0', $align[1]);
     $akhirYNoAkun = $pdf->GetY();
     $pdf->SetY($awalY);
     $pdf->SetX($currentX + $length[1] / 100 * $width);
     $currentX = $pdf->GetX();
     $pdf->MultiCell($length[2] / 100 * $width, $height, $row['keterangan'], '0', $align[2]);
     $akhirYKeterangan = $pdf->GetY();
     $pdf->SetY($awalY);
     $pdf->SetX($currentX + $length[2] / 100 * $width);
     $currentX = $pdf->GetX();