Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-18 21:10:10 +00:00
co-authored by renee-png
parent df94eb39c3
commit e7d316e7ed
+10
View File
@@ -221,6 +221,16 @@ export function LetterGenerator() {
});
}
// Certified mail line (right-aligned, italic) — only when a number is provided
if (certifiedMailNumber.trim() && template.showCertifiedMail !== false) {
doc.setFont(bodyFont, "bolditalic");
const label = template.certifiedMailLabel ?? "U.S. Certified Mail #";
const txt = `${label} ${certifiedMailNumber.trim()}`;
doc.text(txt, pageW - margin - doc.getTextWidth(txt), y);
doc.setFont(bodyFont, "normal");
y += lh + 2;
}
y += 18;
if (renderedSubject) {
doc.setFont(bodyFont, "bold");