corymickelson / NoPoDoFo

node pdf native bindings
GNU Affero General Public License v3.0
26 stars 6 forks source link

Digital Signature is corrupt #72

Closed corymickelson closed 6 years ago

corymickelson commented 6 years ago

While fixing the signature, simplify/refactor Signature into the Signer class, do acroform sigflag updates behind the scenes in the sign or similar methods. The signer api should look something like this afterwards: Signer new(document, output?) loadCertificateAndKey(cert, key, callback) // async setField(SignatureField) write(callback) // async