update logo dimensions in PDF

This commit is contained in:
Narindra ezway 2025-04-24 12:01:26 +03:00
parent b08e255250
commit aabdd70914
3 changed files with 7 additions and 7 deletions

View File

@ -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){

View File

@ -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,'');

View File

@ -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,'');