示例#1
0
         $this->Cell(198, 6, 'Heat Codes: ' . $heatcode, 1, 1, 'L');
     }
     function Footer()
     {
         $this->SetFont('helvetica', '', 16);
         // Page number
         $this->SetY(-10);
         $this->SetFont('helvetica', '', 6);
         $this->Cell(0, 10, 'Page ' . $this->PageNo(), 0, 0, 'C');
     }
 }
 $pdf = new PDF_SKN(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
 //$pdf->AliasNbPages();
 $pdf->setAutoPageBreak(1, 25);
 $pdf->SetMargins(5, 42, 10, 29);
 $pdf->AddPage('P', 'A4');
 $pdf->SetFont('helvetica', '', 10);
 $pdf->setY(35);
 $pdf->SetTextColor(27, 12, 235);
 $pdf->Cell(198, 6, 'Material Inward Details', 1, 1, 'C');
 $pdf->SetTextColor(0, 1, 0);
 $pdf->Cell(68, 6, 'Challan No', 'LRTB', 0, 'C');
 $pdf->Cell(65, 6, 'Challan Date', 'LRTB', 0, 'C');
 $pdf->Cell(65, 6, 'Quantity In Batch', 'LRTB', 1, 'C');
 $i = 0;
 $cno = $rou->getValue('challanno');
 $cdt = $rou->getValue('challandate');
 $qib = $rou->getValue('qtyinbatch');
 $j = count($cno);
 while ($i < $j) {
     $pdf->Cell(68, 6, $cno[$i], 'LRTB', 0, 'C');
示例#2
0
            $this->SetY(-10);
            $this->SetFont('helvetica', '', 6);
            $this->Cell(0, 10, 'Page' . $this->getAliasNumPage() . '/' . $this->getAliasNbPages(), 0, 0, 'C');
        }
    }
    $jobno = array_values($jobnos);
    $bnos = array_values($bnos);
    $dr->setValue('reportjobnos', $jobno);
    $dr->setValue('baloonnos', $bnos);
    $dr->setValue('batchid', $batchid);
    $dr->setValue('opedrawingid', $opedrawingid);
    $dr->getDimensionsforOperation();
    $dr->filterJobDimensions();
    $pdf = new PDF_SKN(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
    $pdf->setAutoPageBreak(0, 35);
    $pdf->AddPage('L', 'A4');
    $pdf->SetFont('helvetica', '', 10);
    $dr->generatePDF($pdf);
    if ($opid != '') {
        $pdfname = $opid . '.pdf';
    } else {
        $pdfname = $drawingid . '.pdf';
    }
    ob_start();
    $pdf->Output($pdfname, 'D');
    ob_end_flush();
} else {
    if (isset($_POST['fair'])) {
        //	print_r($_POST);
        if (isset($_POST['drg'])) {
            $drawingid = $_POST['drg'];