We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Get signature info from signed pdf (Java)


I have signed a PDF document via ASPOSE. And then I want to get information about the person or authority signing the document. And I get null results.

code.zip (5.5 KB)
If you need, In attached you can find code for signing-pdf, code for getting signature-information, and used .pfx file.

In aspose.word I could fetch the needed information

for (DigitalSignature digitalSignature : document.getDigitalSignatures()) {


You may please try using following code snippet in order to get Signer Name. However, if you face any issue, please share the PDF document from which you are trying to extract it. We will test the scenario in our environment and address it accordingly.

com.aspose.pdf.facades.PdfFileSignature pdfSign = new com.aspose.pdf.facades.PdfFileSignature();
pdfSign.bindPdf(dataDir + "input.pdf");
if (pdfSign.containsSignature()) {
 java.util.List<String> sigNames = pdfSign.getSignNames();
  if (sigNames.size() > 0) {
     for(String s:sigNames)


Thank you for your response!

It didn’t work, returns null.

pdfSign.containsSignature() is true
pdfSign.getSignNames() Restruns “Singature1” - which I don’t know from where is it.
And pdfSign.getSignerName(s) returns null

**response.pdf (307.7 KB)

In attached you can find signed document. (signature is on the first page)


We further tried following code snippet with Aspose.PDF for Java 20.6 to extract signature information but, we did not get much success:

Document pdfDocument = new Document(dataDir + "response.pdf");
        for(com.aspose.pdf.Field field:pdfDocument.getForm().getFields()){
            if(field instanceof SignatureField){
                SignatureField s = (SignatureField)field;

Therefore, we have logged an issue as PDFJAVA-39571 in our issue tracking system for the sake of further investigation. We will look into its details and keep you posted with the status of its rectification. Please be patient and spare us some time.

We are sorry for the inconvenience.

1 Like

Thanks,I will wait!

I would like to join the question regarding the problem getting signer information.

I am trying to use java aspose.pdf-21.1 to get the information from the PDF about the signer.
I ran into the same problem. For some PDF files the getSignerName method returns null.
Mostly for unqualified signatures, but also for qualified and encrypted files.

What is the status of the PDFJAVA-39571 issue?
Is there any progress?


The earlier logged issue is currently under the phase of investigation. We have recorded your concerns and will surely let you know as soon as we have some definite updates regarding ticket resolution. Please be patient and spare us some time.

We apologize for the inconvenience.

@TomPil, @razmik.mkrtchyan

We have investigated the earlier logged ticket. The provided document does not contain the signer information, only the date of the sign.

You can check it in Adobe Reader, screenshot with difference attached.
File example with signer info attached too.

short_signed.pdf (8.6 KB)
Screen.png (60.0 KB)