Enlarge cover-letter signature by 20%

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-03 11:41:52 +02:00
co-authored by Claude Opus 4.8
parent 78128db422
commit 3fc8b76d39
+1 -1
View File
@@ -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; }