Fix PDF generation
This commit is contained in:
parent
180013b1ed
commit
36a082e543
3 changed files with 3 additions and 3 deletions
|
|
@ -778,7 +778,7 @@ class pdf_eratosthene extends ModelePDFCommandes
|
|||
|
||||
// Add last page for document footer if there are not enough size left
|
||||
$afterPosData = $this->getMaxAfterColsLinePositionsData();
|
||||
if ($afterPosData['y'] > $this->page_hauteur - ($heightforfooter + $heightforfreetext + $heightforinfotot) ) {
|
||||
if (isset($afterPosData['y']) && $afterPosData['y'] > $this->page_hauteur - ($heightforfooter + $heightforfreetext + $heightforinfotot) ) {
|
||||
$pdf->AddPage();
|
||||
if (!empty($tplidx)) {
|
||||
$pdf->useTemplate($tplidx);
|
||||
|
|
|
|||
|
|
@ -968,7 +968,7 @@ class pdf_sponge extends ModelePDFFactures
|
|||
$afterPosData = $this->getMaxAfterColsLinePositionsData();
|
||||
$page_bottom_margin = $this->heightforfooter + $this->heightforfreetext + $this->heightforinfotot + $this->getHeightForQRInvoice($pdf->getPage(), $object, $langs);
|
||||
|
||||
if ($afterPosData['y'] > $this->page_hauteur - $page_bottom_margin) {
|
||||
if (isset($afterPosData['y']) && $afterPosData['y'] > $this->page_hauteur - $page_bottom_margin) {
|
||||
$pdf->AddPage();
|
||||
if (!empty($tplidx)) {
|
||||
$pdf->useTemplate($tplidx);
|
||||
|
|
|
|||
|
|
@ -804,7 +804,7 @@ class pdf_cyan extends ModelePDFPropales
|
|||
|
||||
// Add last page for document footer if there are not enough size left
|
||||
$afterPosData = $this->getMaxAfterColsLinePositionsData();
|
||||
if ($afterPosData['y'] > $this->page_hauteur - ($heightforfooter + $heightforfreetext + $heightforsignature + $heightforinfotot) ) {
|
||||
if (isset($afterPosData['y']) && $afterPosData['y'] > $this->page_hauteur - ($heightforfooter + $heightforfreetext + $heightforsignature + $heightforinfotot) ) {
|
||||
$pdf->AddPage();
|
||||
if (!empty($tplidx)) {
|
||||
$pdf->useTemplate($tplidx);
|
||||
|
|
|
|||
Loading…
Reference in a new issue