PDF are better with all PDF sizes

This commit is contained in:
Laurent Destailleur 2012-03-20 09:22:41 +01:00
parent 18aecbaa9e
commit 97f0095251
13 changed files with 20 additions and 21 deletions

View File

@ -547,7 +547,7 @@ class pdf_edison extends ModelePDFCommandes
{
if (is_readable($logo))
{
$pdf->Image($logo, $this->marge_gauche, $posy, 0, 24);
$pdf->Image($logo, $this->marge_gauche, $posy, 0, 22); // width=0 (auto), max height=22
}
else
{

View File

@ -606,7 +606,7 @@ class pdf_einstein extends ModelePDFCommandes
$pdf->SetFont('','', $default_font_size - 1);
// Tableau total
$lltot = 200; $col1x = 120; $col2x = 170; $largcol2 = $lltot - $col2x;
$col1x = 120; $col2x = 170; $largcol2 = ($this->page_largeur - $this->marge_droite - $col2x);
$useborder=0;
$index = 0;
@ -890,7 +890,7 @@ class pdf_einstein extends ModelePDFCommandes
{
if (is_readable($logo))
{
$pdf->Image($logo, $this->marge_gauche, $posy, 0, 24); // width=0 (auto), max height=24
$pdf->Image($logo, $this->marge_gauche, $posy, 0, 22); // width=0 (auto), max height=22
}
else
{

View File

@ -382,7 +382,7 @@ Class pdf_expedition_merou extends ModelePdfExpedition
{
if (is_readable($logo))
{
$pdf->Image($logo,10, 5, 0, 22);
$pdf->Image($logo,10, 5, 0, 22); // width=0 (auto), max height=22
}
else
{

View File

@ -344,7 +344,7 @@ Class pdf_expedition_rouget extends ModelePdfExpedition
{
if (is_readable($logo))
{
$pdf->Image($logo, $this->marge_gauche, $posy, 0, 24);
$pdf->Image($logo, $this->marge_gauche, $posy, 0, 22); // width=0 (auto), max height=22
}
else
{

View File

@ -727,7 +727,7 @@ class pdf_crabe extends ModelePDFFactures
$pdf->SetFont('','', $default_font_size - 1);
// Tableau total
$lltot = 200; $col1x = 120; $col2x = 170; $largcol2 = $lltot - $col2x;
$col1x = 120; $col2x = 170; $largcol2 = ($this->page_largeur - $this->marge_droite - $col2x);
$useborder=0;
$index = 0;
@ -1034,7 +1034,7 @@ class pdf_crabe extends ModelePDFFactures
{
if (is_readable($logo))
{
$pdf->Image($logo, $this->marge_gauche, $posy, 0, 24); // width=0 (auto), max height=24
$pdf->Image($logo, $this->marge_gauche, $posy, 0, 22); // width=0 (auto), max height=22
}
else
{

View File

@ -617,8 +617,7 @@ class pdf_oursin extends ModelePDFFactures
$pdf->SetFont('','', $default_font_size - 1);
// Tableau total
$col1x=$this->marges['g']+110; $col2x=$this->marges['g']+164;
$lltot = 200; $largcol2 = $lltot - $col2x;
$col1x=$this->marges['g']+110; $col2x=$this->marges['g']+164; $largcol2 = ($this->page_largeur - $this->marge_droite - $col2x);
$pdf->SetXY($this->marges['g'], $tab2_top + 0);
@ -837,7 +836,7 @@ class pdf_oursin extends ModelePDFFactures
{
$taille=getimagesize($logo);
$length=$taille[0]/2.835;
$pdf->Image($logo, $this->marges['g'], $this->marges['h'], 0, 24);
$pdf->Image($logo, $this->marges['g'], $this->marges['h'], 0, 22); // width=0 (auto), max height=22
}
else
{

View File

@ -445,7 +445,7 @@ class pdf_soleil extends ModelePDFFicheinter
{
if (is_readable($logo))
{
$pdf->Image($logo, $this->marge_gauche, $posy, 0, 24);
$pdf->Image($logo, $this->marge_gauche, $posy, 0, 22); // width=0 (auto), max height=22
}
else
{

View File

@ -511,7 +511,7 @@ class pdf_typhon extends ModelePDFDeliveryOrder
{
if (is_readable($logo))
{
$pdf->Image($logo, $this->marge_gauche, $posy, 0, 22);
$pdf->Image($logo, $this->marge_gauche, $posy, 0, 22); // width=0 (auto), max height=22
}
else
{

View File

@ -352,7 +352,7 @@ class pdf_baleine extends ModelePDFProjects
{
if (is_readable($logo))
{
$pdf->Image($logo, $this->marge_gauche, $posy, 0, 24);
$pdf->Image($logo, $this->marge_gauche, $posy, 0, 22); // width=0 (auto), max height=22
}
else
{

View File

@ -623,7 +623,7 @@ class pdf_azur extends ModelePDFPropales
$pdf->SetFont('','', $default_font_size - 1);
// Tableau total
$lltot = 200; $col1x = 120; $col2x = 170; $largcol2 = $lltot - $col2x;
$col1x = 120; $col2x = 170; $largcol2 = ($this->page_largeur - $this->marge_droite - $col2x);
// Total HT
$pdf->SetFillColor(255,255,255);
@ -924,7 +924,7 @@ class pdf_azur extends ModelePDFPropales
{
if (is_readable($logo))
{
$pdf->Image($logo, $this->marge_gauche, $posy, 0, 24);
$pdf->Image($logo, $this->marge_gauche, $posy, 0, 22); // width=0 (auto), max height=22
}
else
{

View File

@ -609,7 +609,7 @@ class pdf_jaune extends ModelePDFPropales
$pdf->SetFont('','', $default_font_size - 1);
// Tableau total
$lltot = 200; $col1x = 120; $col2x = 170; $largcol2 = $lltot - $col2x;
$col1x = 120; $col2x = 170; $largcol2 = ($this->page_largeur - $this->marge_droite - $col2x);
// Total HT
$pdf->SetFillColor(255,255,255);
@ -909,7 +909,7 @@ class pdf_jaune extends ModelePDFPropales
{
if (is_readable($logo))
{
$pdf->Image($logo, $this->marge_gauche, $posy, 0, 24);
$pdf->Image($logo, $this->marge_gauche, $posy, 0, 22); // width=0 (auto), max height=22
}
else
{

View File

@ -457,7 +457,7 @@ class pdf_canelle extends ModelePDFSuppliersInvoices
}
// Tableau total
$lltot = 200; $col1x = 120; $col2x = 170; $largcol2 = $lltot - $col2x;
$col1x = 120; $col2x = 170; $largcol2 = ($this->page_largeur - $this->marge_droite - $col2x);
// Total HT
$pdf->SetFillColor(255,255,255);
@ -805,7 +805,7 @@ class pdf_canelle extends ModelePDFSuppliersInvoices
{
if (is_readable($logo))
{
$pdf->Image($logo, $this->marge_gauche, $posy, 0, 24);
$pdf->Image($logo, $this->marge_gauche, $posy, 0, 22); // width=0 (auto), max height=22
}
else
{

View File

@ -595,7 +595,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
$pdf->SetFont('','', $default_font_size - 1);
// Tableau total
$lltot = 200; $col1x = 120; $col2x = 170; $largcol2 = $lltot - $col2x;
$col1x = 120; $col2x = 170; $largcol2 = ($this->page_largeur - $this->marge_droite - $col2x);
$useborder=0;
$index = 0;
@ -874,7 +874,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
{
if (is_readable($logo))
{
$pdf->Image($logo, $this->marge_gauche, $posy, 0, 24);
$pdf->Image($logo, $this->marge_gauche, $posy, 0, 22); // width=0 (auto), max height=22
}
else
{