Example #1
0
<tr><td><input type=submit name=submit value=print></td></tr>
</table></form>';
} else {
    // for barcode
    $style = array('position' => '', 'align' => 'C', 'stretch' => false, 'fitwidth' => true, 'cellfitalign' => '', 'border' => false, 'hpadding' => 'auto', 'vpadding' => '0', 'fgcolor' => array(0, 0, 0), 'bgcolor' => false, 'text' => true, 'font' => 'helvetica', 'fontsize' => 6, 'stretchtext' => 4);
    //Page header W=210 H=148
    //210 × 297 A4
    //180,x270 (30,27)
    //3 x 9
    //$this->SetXY(18,$y_counter);
    $pdf = new MYPDF_BARCODE('P', 'mm', 'A4', true, 'UTF-8', false);
    $pdf->AddPage();
    $pdf->SetMargins(0, 0, $right = -1, $keepmargins = true);
    $pdf->setPrintFooter(false);
    $pdf->setPrintHeader(false);
    $pdf->SetAutoPageBreak(TRUE, 0);
    $pdf->setCellPaddings(0, 0, 0, 0);
    /*
     * planning
     * 210 × 297 A4
     * 4 columns, 12 raws, 5 mm margin  so lable width=50
     * 12 raws, 10 mm margin, so 23 mm height
     * */
    $um = 5;
    //upper margin
    $lm = 5;
    //left margin
    $cs = 3;
    //space between columns
    $lw = 48;
    //width