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) ──