Skip to content

Commit

Permalink
fix(TaxForms/W9): Sign box position (#1098)
Browse files Browse the repository at this point in the history
  • Loading branch information
Betree authored Feb 12, 2025
1 parent 30e656b commit 2b9b6cc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/tax-forms/w9.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,14 @@ export const fillW9TaxForm = async (pdfDoc: PDFDocument, values: W9TaxFormValues

fillPDFFormFromValues(form, values, W9FieldsDefinition, font);

const signBoxY = 200;

// W9 don't have a dedicated date field, so we add it manually
const firstPage = pdfDoc.getPage(0);
firstPage.drawText(moment().format('MM/DD/YYYY'), { x: 420, y: 235, size: 10, font });
firstPage.drawText(moment().format('MM/DD/YYYY'), { x: 420, y: signBoxY, size: 10, font });

// Add date & signature
if (values.isSigned) {
await addSignature(pdfDoc, signerFullName, { x: 140, y: 235, fallbackFont: font });
await addSignature(pdfDoc, signerFullName, { x: 140, y: signBoxY, fallbackFont: font });
}
};

0 comments on commit 2b9b6cc

Please sign in to comment.