javapdfdigital-signaturedigital-certificateitext7

Signing using iText, Adobe Reader reports "Signature was created using Not available."


I am successfully signing documents using iText. However, any time that I check the "Advanced Signature Properties" in Adobe Reader I see that the "Signature was created using Not available."

Signature Details

My question is, how can I use iText update this piece of information to then display properly in Adobe Reader or any other PDF reader?

EDIT #1:

An answer suggested using the PdfSignatureAppearance class's setSignatureCreator(String signatureCreator) (API and Source). This was not successful in updating the Signature Details in Adobe Reader. The result is the same as the screenshot included above.

Here is the exact code:

signer.getSignatureAppearance().setSignatureCreator("iText 7.0.2");


Solution

  • You can specify the signature creator using the SignatureAppearance.setSignatureCreator(String signatureCreator) method. You can get the SignatureAppearanceof the signature by using signatureAppearance = pdfSigner.getSignatureAppearance(), with pdfSigner the PdfSignerobject used to create the signature in question.