You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The verify.pdf file has Document structure doesn't match PDF specification. status in verification result.
Looks like it's wrong.
constcrypto=newCrypto();// Set crypto engine for PKIjs modulepkijs.setEngine("NodeJS",newpkijs.CryptoEngine({ crypto }));// Set crypto engine for X509 modulex509.cryptoProvider.set(crypto);// Read the PDF documentconstraw=fs.readFileSync(path.resolve(__dirname,"files","verify.pdf"));constdoc=awaitpdfDoc.PDFDocument.load(raw);constsigStatus=awaitdoc.verify({checkDate: newDate("2023-02-22"),});console.log(sigStatus);
The text was updated successfully, but these errors were encountered:
The verify.pdf file has
Document structure doesn't match PDF specification.
status in verification result.Looks like it's wrong.
The text was updated successfully, but these errors were encountered: