diff --git a/dist/lib/index.js b/dist/lib/index.js index 7ed62642f5eb6075926e9f466dead8a95aa30553..6b0086a30113edba2177414a8757b468280c450d 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);