Enlarge cover-letter signature by 20%
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -730,7 +730,7 @@ function composeLetter(doc, S, dry, cur, { letter, header, job, anlagen, signatu
|
|||||||
if (signatur && signatur.dataUrl) {
|
if (signatur && signatur.dataUrl) {
|
||||||
try {
|
try {
|
||||||
const props = doc.getImageProperties(signatur.dataUrl);
|
const props = doc.getImageProperties(signatur.dataUrl);
|
||||||
const maxW = 48 * S, maxH = 20 * S;
|
const maxW = 57.6 * S, maxH = 24 * S; // 20% larger than before (48 / 20 mm)
|
||||||
sigW = maxW;
|
sigW = maxW;
|
||||||
sigH = sigW * props.height / props.width;
|
sigH = sigW * props.height / props.width;
|
||||||
if (sigH > maxH) { sigH = maxH; sigW = sigH * props.width / props.height; }
|
if (sigH > maxH) { sigH = maxH; sigW = sigH * props.width / props.height; }
|
||||||
|
|||||||
Reference in New Issue
Block a user