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

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -