FIX Position of signature on strato template
This commit is contained in:
parent
8773a6860f
commit
f4de75afc3
@ -397,7 +397,7 @@ class pdf_strato extends ModelePDFContract
|
|||||||
@chmod($file, octdec($conf->global->MAIN_UMASK));
|
@chmod($file, octdec($conf->global->MAIN_UMASK));
|
||||||
|
|
||||||
$this->result = array('fullpath'=>$file);
|
$this->result = array('fullpath'=>$file);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -465,17 +465,20 @@ class pdf_strato extends ModelePDFContract
|
|||||||
|
|
||||||
if (empty($hidebottom))
|
if (empty($hidebottom))
|
||||||
{
|
{
|
||||||
$pdf->SetXY(20,230);
|
$posmiddle = $this->marge_gauche + round(($this->page_largeur - $this->marge_gauche - $this->marge_droite)/2);
|
||||||
$pdf->MultiCell(66,5, $outputlangs->transnoentities("ContactNameAndSignature", $this->emetteur->name),0,'L',0);
|
$posy = $tab_top + $tab_height + 3 + 3;
|
||||||
|
|
||||||
$pdf->SetXY(20,235);
|
$pdf->SetXY($this->marge_gauche, $posy);
|
||||||
$pdf->MultiCell(80,25, '', 1);
|
$pdf->MultiCell($posmiddle - $this->marge_gauche - 5, 5, $outputlangs->transnoentities("ContactNameAndSignature", $this->emetteur->name),0,'L',0);
|
||||||
|
|
||||||
$pdf->SetXY(110,230);
|
$pdf->SetXY($this->marge_gauche, $posy + 5);
|
||||||
$pdf->MultiCell(80,5, $outputlangs->transnoentities("ContactNameAndSignature", $this->recipient->name),0,'L',0);
|
$pdf->MultiCell($posmiddle - $this->marge_gauche - 5, 20, '', 1);
|
||||||
|
|
||||||
$pdf->SetXY(110,235);
|
$pdf->SetXY($posmiddle + 5, $posy);
|
||||||
$pdf->MultiCell(80,25, '', 1);
|
$pdf->MultiCell($this->page_largeur-$this->marge_droite - $posmiddle - 5, 5, $outputlangs->transnoentities("ContactNameAndSignature", $this->recipient->name),0,'L',0);
|
||||||
|
|
||||||
|
$pdf->SetXY($posmiddle + 5, $posy + 5);
|
||||||
|
$pdf->MultiCell($this->page_largeur-$this->marge_droite - $posmiddle - 5, 20, '', 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user