vbuch / node-signpdf

Simple signing of PDFs in node.
MIT License
676 stars 174 forks source link

Angular 17: Buffer is not defined #252

Closed farisshomali closed 2 months ago

farisshomali commented 2 months ago

Screen Shot 2024-04-21 at 4 13 19 PM

The Uint8Array is exist but when i pass the buffer into P12Signer param it throws "Buffer is not defined" error.

`

 const certificatePath = ('sign_cert.p12');

 let buffer = new Buffer(certificatePath);

 const signer = new P12Signer(buffer);

`