Exemplo n.º 1
0
     $lblMarginV = 4;
 } else {
     $lblW = 66;
     $lblH = 25.5;
     $lblMarginH = 3;
     $lblMarginV = 4;
     // 		$lblSpaceH=0.15625*25.4;
     // 		$lblSpaceV=0;
     $pageMarginT = 11;
     $pageMarginL = 5;
     $lblSpaceH = 3;
     $Label4Page = 30;
     // 		$printBarcode=false;
 }
 $PdfData = getStartList();
 $pdf->SetCellPadding(0);
 // 	debug_svela($PdfData->Data['Items']);
 $Etichetta = 0;
 if (!empty($PdfData->Data['Items'])) {
     foreach ($PdfData->Data['Items'] as $Entry) {
         if (!$Entry->Athlete) {
             continue;
         }
         if ($Etichetta == 0) {
             $pdf->AddPage();
         }
         //Cerchia Etichetta
         // 			$pdf->Rect($pageMarginL+(($Etichetta % $Label4Column) * ($lblW+$lblSpaceH)),$pageMarginT+(intval($Etichetta / $Label4Column) * ($lblH+$lblSpaceV)),$lblW,$lblH,"D");
         $pdf->SetXY(0, 0);
         $pdf->SetLeftMargin($pageMarginL + $lblMarginH + $Etichetta % $Label4Column * ($lblW + $lblSpaceH));
         $pdf->SetTopMargin($pageMarginT + $lblMarginV + intval($Etichetta / $Label4Column) * ($lblH + $lblSpaceV));