Expand my Community achievements bar.

Exception while trying to sign a document

Avatar

Former Community Member
hi,

i am trying to sing a document but i got following exception:

[ Creation of this signature could not be completed. ] -> [ You have not selected a valid Digital ID. Please try again. ]

why do this happens?
what is the "digital id"?

here is my sourcecode:

SignatureField certSigField = pdfDoc.addInvisibleSignatureField();
String certSigFieldName = certSigField.getFieldName();
Credential cred = new Credential("InvoiceAdmin",
PWD.getBytes("UTF-8"));
pdfDoc.certify (cred, certSigFieldName, "test Reason",
"test Location", "test contactinfo",
SignaturePermissions.NO_CHANGES, true,
"test legal attest");

my Trust XML looks as follow:









what do i do wrong?

thanks
2 Replies

Avatar

Former Community Member
When the server is started review the log to ensure the trust.xml could be load and parsed. You should see some sort of message like X number of bytes read when the trust is parsed.

Avatar

Former Community Member
How do i extract the digital signature from the document signature field into a XML format?



Is there a way to create a XML signature and have a signature visible on the PDF form?



Thanks



Regards

Delvin