java - How can I add multiple signatures with PDFBox? -
java - How can I add multiple signatures with PDFBox? -
i'm trying add together 2 different signatures (with 2 different certificates, obviously) in pdf document, using pdfbox. started code provided in answer whenever add together sec signature, invalidates first one.
i managed itext, pdfstamper has possibility append elements, cannot utilize itext project, due new license.
can point me in right direction? , if not, there other open source library has signing functionality?
thanks!
edit: problem isn't can't add together sec signature, it's first 1 becomes invalid 1 time sec 1 applied.
created method sec signature , sign document this:
pdfsigner signer = new pdfsigner(input, output); signer.sign(keystore1, password1); signer.signr(keystore2, password2); signer.document.saveincremental(.....);
java digital-signature pdfbox
Comments
Post a Comment