Merge branch 'fix_v20_pdf_space_lost_with_images' of github.com:thersane-john/dolibarr into fix_v20_pdf_space_lost_with_images_eratosthene2

This commit is contained in:
John BOTELLA 2024-10-24 12:16:42 +02:00
commit 7819bef06a

View file

@ -842,7 +842,7 @@ class pdf_cyan extends ModelePDFPropales
$drawTabHeight = $drawTabBottom - $drawTabTop;
$this->_tableau($pdf, $drawTabTop, $drawTabHeight, 0, $outputlangs, $drawTabHideTop, $hideBottom, $object->multicurrency_code, $outputlangsbis);
$hideFreeText = $i != $pdf->getNumPages(); // Display free text only in last page
$hideFreeText = $i != $pdf->getNumPages() ? 1 : 0; // Display free text only in last page
$this->_pagefoot($pdf, $object, $outputlangs, $hideFreeText);
$pdf->setPage($i); // in case of _pagefoot or _tableau change it