From ebb99c968815d86c0380367a96b2274e64cb3c91 Mon Sep 17 00:00:00 2001 From: Tiavina Date: Thu, 2 Jan 2025 12:09:33 +0300 Subject: [PATCH] adresse multicell --- gestion/lib/Controller/PageController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gestion/lib/Controller/PageController.php b/gestion/lib/Controller/PageController.php index a43269e..eac8a97 100644 --- a/gestion/lib/Controller/PageController.php +++ b/gestion/lib/Controller/PageController.php @@ -815,7 +815,7 @@ class PageController extends Controller { $pdf->SetXY( $_x, $_y ); $pdf->MultiCell( 80, 4, utf8_decode(html_entity_decode($adresse)), 0, 0, ''); // date facture $pdf->SetFont('Arial','',11); $pdf->SetXY( 122, 60 ); - $pdf->Cell( 60, 8, $current_config[0]->adresse . " le, ".utf8_decode($date_formated), 0, 0, ''); + $pdf->MultiCell( 60, 8, $current_config[0]->adresse . " le, ".utf8_decode($date_formated), 0, 0, ''); // observations $pdf->SetFont( "Arial", "BU", 10 ); $pdf->SetXY( 10, 85 ) ; $pdf->Cell($pdf->GetStringWidth("Objet:"), 0, "Objet:", 0, "L"); @@ -840,7 +840,7 @@ class PageController extends Controller { $pdf->Image($this->currentUserImagePath."sign.png", 122, 150, 55, 30); } - $y0 = 265; + $y0 = 260; $pageWidth = $pdf->GetPageWidth(); //Positionnement en bas et tout centrer $pdf->SetFont('Arial','',6); @@ -876,8 +876,8 @@ class PageController extends Controller { } // date facture - $pdf->SetFont('Arial','',11); $pdf->SetXY( 122, 15 ); - $pdf->Cell( 60, 8, $current_config[0]->adresse . " le, ".utf8_decode($date_formated), 0, 0, ''); + $pdf->SetFont('Arial','',11); $pdf->SetXY( 122, y: 10 ); + $pdf->MultiCell( 60, 8, $current_config[0]->adresse . " le, ".utf8_decode($date_formated), 0, 0, ''); // n° facture, date echeance et reglement et obs $pdf->SetLineWidth(0.1); $pdf->SetFillColor(255); $pdf->Rect(100, 30, 85, 8, "DF");