From 3c115c19cb6528c956282408ea11d7152d6cbcea Mon Sep 17 00:00:00 2001 From: Tolotsoa Date: Mon, 29 Sep 2025 15:11:59 +0300 Subject: [PATCH] =?UTF-8?q?fix=20mettre=20=C3=A0=20la=20ligne=20lieu=20int?= =?UTF-8?q?ervention?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PacemakerAbsentCertificatePdfHandler.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/gestion/lib/Service/Certificate/PdfHandler/PacemakerAbsentCertificatePdfHandler.php b/gestion/lib/Service/Certificate/PdfHandler/PacemakerAbsentCertificatePdfHandler.php index a026a73..9c69fe5 100644 --- a/gestion/lib/Service/Certificate/PdfHandler/PacemakerAbsentCertificatePdfHandler.php +++ b/gestion/lib/Service/Certificate/PdfHandler/PacemakerAbsentCertificatePdfHandler.php @@ -68,9 +68,7 @@ class PacemakerAbsentCertificatePdfHandler extends FPDF public function Footer() { - $this->SetY(-15); - $this->MultiCell(0, 5, utf8_decode(html_entity_decode($this->devisOfDefunt['configuration']->legal_one)), 0, 'C'); - $this->MultiCell(0, 5, utf8_decode(html_entity_decode($this->devisOfDefunt['configuration']->adresse)), 0, 'C'); + // Footer vide maintenant - signatures déplacées dans le contenu } public function SetPacemakerCertificateData(array $devisOfDefunt, $logo = null, $signatureImageExist = false, $tamponImageExist = false) @@ -139,17 +137,23 @@ class PacemakerAbsentCertificatePdfHandler extends FPDF $lieu = isset($this->devisOfDefunt['lieu_intervention']) ? $this->devisOfDefunt['lieu_intervention'] : $this->devisOfDefunt['location_of_devis']; - $this->Cell(0, 8, FileExportHelpers::FormatTextForExport($lieu), 0, 1); + + // Utiliser MultiCell pour permettre le retour à la ligne + $this->SetX(20); // Retour au début de la ligne + $this->SetFont('Arial', 'B', 12); + $this->Cell(40, 8, 'Lieu d\'intervention :', 0, 1); // 1 pour aller à la ligne suivante + $this->SetFont('Arial', '', 12); + $this->MultiCell(0, 6, FileExportHelpers::FormatTextForExport($lieu), 0, 'L'); // Signatures et cachet - juste après le lieu d'intervention - $this->Ln(30); // Petit espace après le lieu d'intervention + $this->Ln(15); // Petit espace après le lieu d'intervention if ($this->signatureImageExist) { $this->Image($this->imagePath."sign.png", 140, $this->GetY(), 40, 16); } if($this->tamponImageExist) { - $this->SetXY(120, $this->GetY() + 20); + $this->SetXY(120, $this->GetY() + 20); // Augmenté de 5 à 20 pour plus d'espace $this->Image($this->imagePath."sign.jpg", 120, $this->GetY(), 80, 35); } }