Fix: Pb si logo non png

This commit is contained in:
Laurent Destailleur 2005-06-28 22:15:19 +00:00
parent 79c0871497
commit 6ddfc3acb3
2 changed files with 2 additions and 2 deletions

View File

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

View File

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