Closed rafliher closed 3 months ago
Hi @rafliher,
If you look at the types of pdfkitAddPlaceholder
you will see that the pdf
parameter is supposed to be a PDFDocument
. That is an instance of pdfkit. So it would work if you give it pdfDoc
(before saving) instead of pdfBytes
. I don't know why you thought it should be base64 encoded.
Some error raised when trying so sign a pdf in form of bytes and p12Signer
i can obtain a valid P12Signer instance
trying to sign it, an error was raised![image](https://github.com/vbuch/node-signpdf/assets/55349616/2e59fb45-585c-4a8d-ad3e-d6e440eed9ed)