Fix Signature position (#37048)

Move up the position of the signature to fix its explosion on 3 pages
This commit is contained in:
Pierre Ardoin 2026-02-02 00:38:06 +01:00 committed by GitHub
parent 079f0565d7
commit 73273a48da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -560,7 +560,7 @@ if ($action == "importSignature") {
if (getDolGlobalString("FICHINTER_SIGNATURE_YFORIMGSTART")) {
$param['yforimgstart'] = getDolGlobalString("FICHINTER_SIGNATURE_YFORIMGSTART");
} else {
$param['yforimgstart'] = (empty($s['h']) ? 250 : $s['h'] - 38);
$param['yforimgstart'] = (empty($s['h']) ? 250 : $s['h'] - 62);
}
if (getDolGlobalString("FICHINTER_SIGNATURE_WFORIMG")) {
$param['wforimg'] = getDolGlobalString("FICHINTER_SIGNATURE_WFORIMG");
@ -582,7 +582,7 @@ if ($action == "importSignature") {
// TODO Get position of box from PDF template
$param['xforimgstart'] = (empty($s['w']) ? 110 : $s['w'] / 2 - 2);
$param['yforimgstart'] = (empty($s['h']) ? 250 : $s['h'] - 38);
$param['yforimgstart'] = (empty($s['h']) ? 250 : $s['h'] - 62);
$param['wforimg'] = $s['w'] - ($param['xforimgstart'] + 20);
dolPrintSignatureImage($pdf, $langs, $param);