minify all files required for signpdf

This commit is contained in:
prafullnavkar-nxg
2023-10-25 15:57:26 +05:30
parent 57a3716092
commit 6a15193d7e
41 changed files with 61 additions and 1258 deletions
@@ -0,0 +1 @@
const signer=require("node-signpdf").default;class SignPDF{constructor(e,t){this.pdfDoc=e,this.certificate=t}async signPDF(){return signer.sign(this.pdfDoc,this.certificate,{passphrase:"emudhra"})}static unit8ToBuffer(e){var t=Buffer.alloc(e.byteLength),r=new Uint8Array(e);for(let e=0;e<t.length;++e)t[e]=r[e];return t}}module.exports=SignPDF;