From 912f7c6c684322c04d6c69b13a567cda764dfebe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sat, 1 Dec 2018 21:41:40 +0100 Subject: [PATCH 1/2] Update pdf_strato.modules.php --- .../modules/contract/doc/pdf_strato.modules.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/htdocs/core/modules/contract/doc/pdf_strato.modules.php b/htdocs/core/modules/contract/doc/pdf_strato.modules.php index 91bf86e0249..9b3446a846a 100644 --- a/htdocs/core/modules/contract/doc/pdf_strato.modules.php +++ b/htdocs/core/modules/contract/doc/pdf_strato.modules.php @@ -452,7 +452,7 @@ class pdf_strato extends ModelePDFContract else { $this->_tableau($pdf, $tab_top_newpage, $this->page_hauteur - $tab_top_newpage - $heightforinfotot - $heightforfreetext - $heightforfooter, 0, $outputlangs, 0, 0); - $this->_tab_signature($pdf, $tab_top_newpage, $this->page_hauteur - $tab_top_newpage - $heightforinfotot - $heightforfreetext - $heightforfooter, $outputlangs); + $this->tabSignature($pdf, $tab_top_newpage, $this->page_hauteur - $tab_top_newpage - $heightforinfotot - $heightforfreetext - $heightforfooter, $outputlangs); $bottomlasttab=$this->page_hauteur - $heightforfooter - $heightforfooter + 1; } @@ -545,7 +545,16 @@ class pdf_strato extends ModelePDFContract $this->printRect($pdf, $this->marge_gauche, $tab_top, $this->page_largeur-$this->marge_gauche-$this->marge_droite, $tab_height+3); // Rect prend une longueur en 3eme param et 4eme param } - function _tab_signature(&$pdf, $tab_top, $tab_height, $outputlangs) { + /** + * Show footer signature of page + * @param PDF $pdf Object PDF + * @param int $tab_top tab height position + * @param int $tab_height tab height + * @param Translate $outputlang langage + * @return void + */ + private function tabSignature(&$pdf, $tab_top, $tab_height, $outputlangs) + { $pdf->SetDrawColor(128,128,128); $posmiddle = $this->marge_gauche + round(($this->page_largeur - $this->marge_gauche - $this->marge_droite)/2); $posy = $tab_top + $tab_height + 3 + 3; From c6291b3e08de791a4d351892ade3d6f73467c2f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sat, 1 Dec 2018 21:59:37 +0100 Subject: [PATCH 2/2] Update pdf_strato.modules.php --- htdocs/core/modules/contract/doc/pdf_strato.modules.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/core/modules/contract/doc/pdf_strato.modules.php b/htdocs/core/modules/contract/doc/pdf_strato.modules.php index 9b3446a846a..2dc2acbcb6d 100644 --- a/htdocs/core/modules/contract/doc/pdf_strato.modules.php +++ b/htdocs/core/modules/contract/doc/pdf_strato.modules.php @@ -6,6 +6,7 @@ * Copyright (C) 2011 Fabrice CHERRIER * Copyright (C) 2013-2018 Philippe Grand * Copyright (C) 2015 Marcos García + * Copyright (C) 2018 Frédéric France * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -550,7 +551,7 @@ class pdf_strato extends ModelePDFContract * @param PDF $pdf Object PDF * @param int $tab_top tab height position * @param int $tab_height tab height - * @param Translate $outputlang langage + * @param Translate $outputlangs Object language for output * @return void */ private function tabSignature(&$pdf, $tab_top, $tab_height, $outputlangs)