From 80faf0bc1e9d17b59e5b291d7b6cf3c34b747a86 Mon Sep 17 00:00:00 2001 From: Reece Date: Fri, 26 Sep 2025 18:55:09 +0100 Subject: [PATCH] - --- frontend/src/utils/signatureFlattening.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/frontend/src/utils/signatureFlattening.ts b/frontend/src/utils/signatureFlattening.ts index e48ee8465..fd7e701a6 100644 --- a/frontend/src/utils/signatureFlattening.ts +++ b/frontend/src/utils/signatureFlattening.ts @@ -156,7 +156,7 @@ export async function flattenSignatures(options: SignatureFlatteningOptions): Pr if (pageIndex < pages.length) { const page = pages[pageIndex]; - const { width: _pageWidth, height: pageHeight } = page.getSize(); + const { height: pageHeight } = page.getSize(); for (const annotation of annotations) { try { @@ -271,12 +271,6 @@ export async function flattenSignatures(options: SignatureFlatteningOptions): Pr uint8View.set(flattenedPdfBytes); signedFile = new File([arrayBuffer], currentFile.name, { type: 'application/pdf' }); - // Verify the modified PDF can be loaded - try { - const _verifyDoc = await PDFDocument.load(flattenedPdfBytes); - } catch (verifyError) { - console.error('❌ Verification: Modified PDF cannot be loaded:', verifyError); - } } catch (renderError) { console.error('Failed to manually render annotations:', renderError); console.warn('Signatures may only show as annotations');