From 6215f35f176b9becab000e47d6aac6b8c4f270c8 Mon Sep 17 00:00:00 2001 From: Zdravko Iliev <zdravko.iliev61@gmail.com> Date: Tue, 8 Nov 2022 16:34:54 +0200 Subject: [PATCH] add build --- dist/lib/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dist/lib/index.js b/dist/lib/index.js index 7ed6264..6b0086a 100644 --- a/dist/lib/index.js +++ b/dist/lib/index.js @@ -10,7 +10,8 @@ const verifyPDF = (pdf) => { (0, generalUtils_1.checkForSubFilter)(pdfBuffer); } catch (error) { - throw new Error(error.message); + //SubFilter is only available if there is a sig in the pdf + return null; } try { const { signatureStr, signedData, signatureMeta } = (0, signatureUtils_1.extractSignature)(pdfBuffer); -- GitLab