diff --git a/htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php b/htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php index 159ff81e33e..a84e6fed4a2 100644 --- a/htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php +++ b/htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php @@ -635,7 +635,6 @@ class pdf_eratosthene extends ModelePDFCommandes } - $nexY = max($pdf->GetY(), $posYAfterImage); diff --git a/htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php b/htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php index 4ea8fcc585d..5e2e4380a0b 100644 --- a/htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php +++ b/htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php @@ -400,6 +400,7 @@ class pdf_canelle extends ModelePDFSuppliersInvoices $pageposbefore = $pdf->getPage(); $showpricebeforepagebreak = 1; + $posYAfterImage = 0; // Description of product line $curX = $this->posxdesc - 1;