From 7491f60e09fa6e38d547c839a02dad37c285b0ec Mon Sep 17 00:00:00 2001 From: Benjamin Piouffle Date: Wed, 30 Oct 2024 11:57:01 +0100 Subject: [PATCH] fix(TaxForm): handling of NFFE status (#1075) --- lib/pdf-lib-utils.ts | 2 ++ lib/tax-forms/w8-ben-e.ts | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/lib/pdf-lib-utils.ts b/lib/pdf-lib-utils.ts index 06b4e58a..25eb1454 100644 --- a/lib/pdf-lib-utils.ts +++ b/lib/pdf-lib-utils.ts @@ -39,6 +39,8 @@ export const fillAllFieldsFromPDFFormWithPath = (pdfForm) => { if (field.constructor.name === 'PDFTextField') { const maxLength = field.getMaxLength(); field.setText(truncateMiddle(field.getName(), maxLength)); + } else if (field.constructor.name === 'PDFCheckBox') { + console.debug(`Found checkbox: ${field.getName()}`); } } }; diff --git a/lib/tax-forms/w8-ben-e.ts b/lib/tax-forms/w8-ben-e.ts index 74866d75..0be42808 100644 --- a/lib/tax-forms/w8-ben-e.ts +++ b/lib/tax-forms/w8-ben-e.ts @@ -13,6 +13,14 @@ const W8BenEFieldsDefinition: Partial