From 3b220a3f269fbcac694026c6beaab34482805431 Mon Sep 17 00:00:00 2001 From: renee-png Date: Wed, 3 Jun 2026 01:12:52 -0400 Subject: [PATCH] Checks: drop "Authorized Signer", move signature label below the line Removes the "Authorized Signer" text from the payee/address block, moves the "AUTHORIZED SIGNATURE" label to just below the signature line, and raises the signature image cap (0.42 -> 0.65 in) so the signature renders full size in the now-clear space above the line. Co-Authored-By: Claude Opus 4.8 --- src/pages/accounting/lib/checkPdf.ts | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/pages/accounting/lib/checkPdf.ts b/src/pages/accounting/lib/checkPdf.ts index 727dfab..cb4d673 100644 --- a/src/pages/accounting/lib/checkPdf.ts +++ b/src/pages/accounting/lib/checkPdf.ts @@ -271,11 +271,6 @@ function drawCheck( doc.setFontSize(9); doc.setTextColor(0); doc.text(c.payee, x(addrIndentX + dx), addrBlockY); - doc.setFont("helvetica", "normal"); - doc.setFontSize(7.5); - doc.setTextColor(80); - doc.text("Authorized Signer", x(RIGHT + dx), addrBlockY, { align: "right" }); - doc.setTextColor(0); if (addrLines.length > 0) { doc.setFont("helvetica", "normal"); doc.setFontSize(8.5); @@ -310,16 +305,13 @@ function drawCheck( if (!hid("signature")) { const dx = ax("signature"); const bottomLineY = y(bottomDy + ay("signature")); - doc.setFont("helvetica", "normal"); - doc.setFontSize(7); - doc.setTextColor(80); - doc.text("AUTHORIZED SIGNATURE", x(sigCenterX + dx), bottomLineY - 0.36, { align: "center" }); - doc.setTextColor(0); + // Signature image — rendered full size above the line (bottom edge sits ON + // the line). With the label moved below the line, it can use the full height. if (c.printSignature && c.signatureDataUrl) { try { const props = doc.getImageProperties(c.signatureDataUrl); const maxW = RIGHT - sigLabelX - 0.1; - const maxH = 0.42; + const maxH = 0.65; const ratio = props.width / props.height; let sigW = maxW; let sigH = sigW / ratio; @@ -329,7 +321,14 @@ function drawCheck( doc.addImage(c.signatureDataUrl, "PNG", sigX, sigY, sigW, sigH); } catch { /* silent */ } } + // Signature line hline(doc, x(sigLabelX + dx), bottomLineY, x(RIGHT + dx)); + // "AUTHORIZED SIGNATURE" label below the line + doc.setFont("helvetica", "normal"); + doc.setFontSize(7); + doc.setTextColor(80); + doc.text("AUTHORIZED SIGNATURE", x(sigCenterX + dx), bottomLineY + 0.13, { align: "center" }); + doc.setTextColor(0); } // ── MICR line (X offset + separate MICR Y fine-tune) ──