fix mettre à la ligne lieu intervention
This commit is contained in:
parent
9b82a799e3
commit
3c115c19cb
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user