From aabdd70914ae3388ef47df02c5273e09e75603a1 Mon Sep 17 00:00:00 2001 From: Narindra ezway Date: Thu, 24 Apr 2025 12:01:26 +0300 Subject: [PATCH] update logo dimensions in PDF --- gestion/lib/Controller/PageController.php | 10 +++++----- .../PdfHandler/CareCertificatePdfHandler.php | 2 +- .../PdfHandler/PacemakerCertificatePdfHandler.php | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gestion/lib/Controller/PageController.php b/gestion/lib/Controller/PageController.php index f313f51..6c67ea4 100644 --- a/gestion/lib/Controller/PageController.php +++ b/gestion/lib/Controller/PageController.php @@ -593,7 +593,7 @@ class PageController extends Controller { $pdf->SetMargins(0,0,0); // logo : 80 de largeur et 55 de hauteur - $pdf->Image($this->src_path."logo.png", 10, 10, 55, 30); + $pdf->Image($this->src_path."logo.png", 10, 10, 75, 25); // adresse du facture $pdf->SetFont('Arial','B',11); $_x = 122 ; $_y = 40; $pdf->SetXY( $_x, $_y ); $pdf->Cell( 100, 8, utf8_decode('Groupe COGF'), 0, 0, ''); $_y += 8; @@ -648,7 +648,7 @@ class PageController extends Controller { $pdf->SetAutoPagebreak(False); $pdf->SetMargins(0,0,0); - $pdf->Image($this->src_path."logo.png", 10, 10, 55, 30); + $pdf->Image($this->src_path."logo.png", 10, 10, 75, 25); // n° page en haute à droite if($nb_page>1){ @@ -831,7 +831,7 @@ class PageController extends Controller { $pdf->AddFont('ComicSans','B','comic-sans-bold.php'); $current_client = ''; $adresse = ''; - $date_facture; + $date_facture = ''; $j=1; foreach ($client as $key => $facture) { if($j==1) { @@ -855,7 +855,7 @@ class PageController extends Controller { $pdf->SetMargins(0,0,0); // logo : 80 de largeur et 55 de hauteur - $pdf->Image($this->src_path."logo.png", 10, 10, 55, 30); + $pdf->Image($this->src_path."logo.png", 10, 10, 75, 25); // adresse du facture $pdf->SetFont('ComicSans','B',11); $_x = 122 ; $_y = 40; $pdf->SetXY( $_x, $_y ); $pdf->Cell( 100, 8, utf8_decode($current_client), 0, 0, ''); $_y += 8; @@ -910,7 +910,7 @@ class PageController extends Controller { $pdf->SetAutoPagebreak(False); $pdf->SetMargins(0,0,0); - $pdf->Image($this->src_path."logo.png", 10, 10, 55, 30); + $pdf->Image($this->src_path."logo.png", 10, 10, 75, 25); // n° page en haute à droite if($nb_page>1){ diff --git a/gestion/lib/Service/Certificate/PdfHandler/CareCertificatePdfHandler.php b/gestion/lib/Service/Certificate/PdfHandler/CareCertificatePdfHandler.php index 3639e4d..0290bbf 100644 --- a/gestion/lib/Service/Certificate/PdfHandler/CareCertificatePdfHandler.php +++ b/gestion/lib/Service/Certificate/PdfHandler/CareCertificatePdfHandler.php @@ -42,7 +42,7 @@ class CareCertificatePdfHandler extends FPDF { function Header() { if($this->logo != "nothing"){ - $this->Image($this->imagePath."logo.png", 10, 10,50,35); + $this->Image($this->imagePath."logo.png", 10, 10, 75, 25); } else{ $this->Cell(55,30,''); diff --git a/gestion/lib/Service/Certificate/PdfHandler/PacemakerCertificatePdfHandler.php b/gestion/lib/Service/Certificate/PdfHandler/PacemakerCertificatePdfHandler.php index 1950efe..b76695c 100644 --- a/gestion/lib/Service/Certificate/PdfHandler/PacemakerCertificatePdfHandler.php +++ b/gestion/lib/Service/Certificate/PdfHandler/PacemakerCertificatePdfHandler.php @@ -42,7 +42,7 @@ class PacemakerCertificatePdfHandler extends FPDF { function Header() { if($this->logo != "nothing"){ - $this->Image($this->imagePath."logo.png", 10, 10, 50,35); + $this->Image($this->imagePath."logo.png", 10, 10, 75, 25); } else{ $this->Cell(55,30,'');