include '../scat.php'; include '../lib/item.php'; include '../lib/fpdf/alphapdf.php'; include '../lib/fpdf/ean13.php'; $a = array(); $in = $_REQUEST['in']; $ex = $_REQUEST['ex']; if ($ex) { $exa = preg_split('/\\s+/', $ex); $in .= ' -' . join(' -', $exa); } $items = item_find($db, $in, FIND_OR); $default_height = $height = 1; $cols = 3; $pdf = new AlphaPDF('P', 'in', 'Letter'); $pdf->SetCompression(true); $pdf->SetMargins(0, 0); $pdf->SetAutoPageBreak(false); $x = $y = 0; $light = 96; $basefontsize = 6; $label_width = 2.625; foreach ($items as $item) { $bx = 0.25 + $x * ($label_width + 0.125); $by = 0.5 + $y * $height; $vmargin = 0.125; if ($x == 0 && $y == 0) { $pdf->AddPage(); if ($_REQUEST['debug']) { $pdf->SetDrawColor($light); $pdf->SetLineWidth(1 / 72 / 2);