Fix: Pb si logo non png
This commit is contained in:
parent
79c0871497
commit
6ddfc3acb3
@ -431,7 +431,7 @@ class pdf_adytek extends ModelePDFFactures {
|
||||
{
|
||||
if (file_exists(FAC_PDF_LOGO)) {
|
||||
$pdf->SetXY(10,5);
|
||||
$pdf->Image(FAC_PDF_LOGO, 10, 5,45.0, 25.0, 'PNG');
|
||||
$pdf->Image(FAC_PDF_LOGO, 10, 5,45.0, 25.0);
|
||||
}
|
||||
else {
|
||||
$pdf->SetTextColor(200,0,0);
|
||||
|
||||
@ -579,7 +579,7 @@ class pdf_oursin extends ModelePDFFactures
|
||||
{
|
||||
$taille=getimagesize(FAC_PDF_LOGO);
|
||||
$longueur=$taille[0]/2.835;
|
||||
$pdf->Image(FAC_PDF_LOGO, $this->marges['g'], $this->marges['h'], 0, 24, 'PNG');
|
||||
$pdf->Image(FAC_PDF_LOGO, $this->marges['g'], $this->marges['h'], 0, 24);
|
||||
}
|
||||
else {
|
||||
$pdf->SetTextColor(200,0,0);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user