Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
df94eb39c3
commit
e7d316e7ed
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user