Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
18373fb7a4
commit
76b61aa0d7
@@ -306,18 +306,7 @@ export function LetterGenerator() {
|
||||
y += lh;
|
||||
}
|
||||
|
||||
if (template.signature) {
|
||||
y += 18;
|
||||
const sig = fillTokens(template.signature, tokenMap);
|
||||
sig.split("\n").forEach((line) => {
|
||||
if (y > bodyBottomLimit) {
|
||||
doc.addPage();
|
||||
y = margin;
|
||||
}
|
||||
doc.text(line, margin, y);
|
||||
y += lh;
|
||||
});
|
||||
}
|
||||
// Signature is intentionally not auto-added — users can type it into the body.
|
||||
|
||||
// ----- Footer on every page -----
|
||||
if (footerLines.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user