This commit is contained in:
KANE LAZENI 2026-02-17 18:47:01 +00:00
parent cb4e039cfc
commit 671b9bd574

View File

@ -144,17 +144,21 @@ $pdf->SetFont('Arial', 'B', 6);
$pdf->Cell(0, 3, substr(mb_convert_encoding($assure['adherent'], "ISO-8859-1", "UTF-8"), 0, 15), 0, 1);
// Photo de l'assuré (positionnée à droite) - taille réduite
// $photoPath = $_SESSION['dossierPhoto_C'].$_SESSION['dossierSociete'].'/Photos/'.$assure['lienPhoto'];
// $photo=$assure['lienPhoto'];
$photo=$assure['lienPhoto'];
$faceRegistered=$assure['faceRegistered'];
$photoPath = "";
$photoX = 57;
$photoY = 17;
// Vérifier si l'URL est accessible
$headers = @get_headers($photoPath);
$headers = null;
if($photo>" " && $faceRegistered=="1")
{
$headers = @get_headers($photoPath);
}
if ($assure['lienPhoto']>" " && $headers && $faceRegistered=="1") {
// if ($assure['lienPhoto']>" " && $headers && $faceRegistered=="1") {
if ($headers) {
$photoPath = $_SESSION['dossierPhoto_C'].$_SESSION['dossierSociete'].'/Photos/'.$assure['lienPhoto'];
$data = decryptImage($photoPath);
$data = base64_decode($data);