Footer left: show 'Reimbursement form' and staff name on second line

https://claude.ai/code/session_014uUwDBtG5y5FuWcy5zqVD1
This commit is contained in:
Claude 2026-05-13 10:00:43 +00:00
parent 0dd4506ed5
commit 31b5b2e255
No known key found for this signature in database

View file

@ -779,8 +779,8 @@ async function generatePDF() {
pages.forEach((p, i) => {
const fy = M.bottom - 30;
p.drawLine({start:{x:M.left, y:fy+18}, end:{x:M.left+W, y:fy+18}, thickness:0.5, color:lineCol});
const footLeft = CFG.footer || 'Reimbursement form';
p.drawText(footLeft, {x:M.left, y:fy, size:szSm-1, font:fontBody, color:gray});
p.drawText('Reimbursement form', {x:M.left, y:fy, size:szSm-1, font:fontBody, color:gray});
p.drawText(state.staff, {x:M.left, y:fy-lh+2, size:szSm-1, font:fontBody, color:gray});
const pgStr = `Page ${i+1}/${totalPages}`;
const pgW2 = fontBody.widthOfTextAtSize(pgStr, szSm-1);
p.drawText(pgStr, {x:M.left+W-pgW2, y:fy, size:szSm-1, font:fontBody, color:gray});