$pdf->SetXY($PosX + 2, $PosY + 27); $pdf->Cell($AccW - 4, 0, get_text($MyRow->ClDescription, '', '', true), 0, 0, 'C', 0); $pdf->SetFont('', 'B', 20); //Cognome e Nome $pdf->SetXY($PosX + 2, $PosY + 39); $pdf->Cell($AccW - 4, 0, $MyRow->FirstName . ' ' . $MyRow->Name, 0, 0, 'C', 0); $pdf->SetDefaultColor(); // if($IncludePhoto and !is_null($MyRow->PhPhoto)) //FOTO dell'accredito se Presente // { // $im = imagecreatefromstring(base64_decode($MyRow->PhPhoto)); // $tmpImgW = ((((($AccH*0.3)-4)/imagesy($im))*imagesx($im))); // $pdf->Image('@'.base64_decode($MyRow->PhPhoto), $PosX + $AccW - 2 - $tmpImgW, $PosY+($AccH*0.3)+ 2, 0, ($AccH*0.3) - 4,'','','',false,300,'',false,false,1); // imagedestroy($im); // } // Nation Picture if (file_exists($tmp = $CFG->DOCUMENT_PATH . 'TV/Photos/' . $_SESSION['TourCodeSafe'] . '-Fl-svg-' . $MyRow->NationCode . '.svg')) { $pdf->ImageSVG($tmp, $PosX + 2, $PosY + $AccH - $FlagHeight - 2, 0, $FlagHeight, '', '', '', 1); } elseif (file_exists($tmp = $CFG->DOCUMENT_PATH . 'TV/Photos/' . $_SESSION['TourCodeSafe'] . '-Fl-' . $MyRow->NationCode . '.jpg')) { $pdf->Image($tmp, $PosX + 2, $PosY + $AccH - $FlagHeight - 2, 0, $FlagHeight, '', '', '', 1); } $pdf->SetXY($PosX + 2 + $FlagHeight / 2 * 3, $PosY + $AccH - $FlagHeight - 2); //Country $pdf->SetFont('', 'B', 25); //Cognome e Nome $pdf->Cell($AccW - 2 - $FlagHeight / 2 * 3, $FlagHeight, $MyRow->Nation, 0, 0, 'C', 0); //RETTANGOLO CHE CONTIENE L'ACCREDITO $pdf->Rect($PosX, $PosY, $AccW, $AccH); $cntPass++; } safe_free_result($Rs); $pdf->Output();