|
559 | 559 | if (getDolGlobalString("FICHINTER_SIGNATURE_XFORIMGSTART")) { |
560 | 560 | $param['xforimgstart'] = getDolGlobalString("FICHINTER_SIGNATURE_XFORIMGSTART"); |
561 | 561 | } else { |
562 | | - $param['xforimgstart'] = 111; |
| 562 | + $param['xforimgstart'] = (empty($s['w']) ? 110 : round($s['w'] * 0.53)); |
563 | 563 | } |
564 | 564 | if (getDolGlobalString("FICHINTER_SIGNATURE_YFORIMGSTART")) { |
565 | 565 | $param['yforimgstart'] = getDolGlobalString("FICHINTER_SIGNATURE_YFORIMGSTART"); |
|
585 | 585 | // A signature image file is 720 x 180 (ratio 1/4) but we use only the size into PDF |
586 | 586 | // TODO Get position of box from PDF template |
587 | 587 |
|
588 | | - $param['xforimgstart'] = 111; |
| 588 | + $param['xforimgstart'] = (empty($s['w']) ? 110 : round($s['w'] * 0.53)); |
589 | 589 | $param['yforimgstart'] = (empty($s['h']) ? 250 : $s['h'] - 60); |
590 | 590 | $param['wforimg'] = $s['w'] - ($param['xforimgstart'] + 16); |
591 | 591 |
|
|
918 | 918 | // A signature image file is 720 x 180 (ratio 1/4) but we use only the size into PDF |
919 | 919 | // TODO Get position of box from PDF template |
920 | 920 |
|
921 | | - $param['xforimgstart'] = 111; |
| 921 | + $param['xforimgstart'] = (empty($s['w']) ? 110 : round($s['w'] * 0.53)); |
922 | 922 | $param['yforimgstart'] = (empty($s['h']) ? 250 : $s['h'] - 60); |
923 | 923 | $param['wforimg'] = $s['w'] - ($param['xforimgstart'] + 16); |
924 | 924 |
|
|
935 | 935 | // A signature image file is 720 x 180 (ratio 1/4) but we use only the size into PDF |
936 | 936 | // TODO Get position of box from PDF template |
937 | 937 |
|
938 | | - $param['xforimgstart'] = 111; |
| 938 | + $param['xforimgstart'] = (empty($s['w']) ? 110 : round($s['w'] * 0.53)); |
939 | 939 | $param['yforimgstart'] = (empty($s['h']) ? 250 : $s['h'] - 60); |
940 | 940 | $param['wforimg'] = $s['w'] - ($param['xforimgstart'] + 16); |
941 | 941 |
|
|
0 commit comments