Aspose.pdf does not detect digital signature

I’m working on a project, we need to check if the pdf file contains a digital signature. I use the ContainsSignature function. For certain pdf I see that the file has a signature, but the function returns false. Are there cases where aspose cannot know if the file has a digital signature? We use the latest version aspose for .net

Thanks!

@sylvain.couture

Would you please share the sample PDF document for which you are unable to detect the signatures? Please also share the code snippet that you are using so that we can test the scenario in our environment and address it accordingly.

Here is the function and the file is attached
public static bool ValiderSignatureElectroniqueFichierPDF(string fichier)
{
try
{
PdfFileSignature pdfSign = new PdfFileSignature();
pdfSign.BindPdf(fichier);

        var sigNames = pdfSign.GetSignNames();
        if (!pdfSign.ContainsSignature())
        {
            pdfSign.Close();
            return false;
        }
        pdfSign.Close();
        return true;
    }
    catch (Exception ex)
    {
        Console.WriteLine(ex.Message);
    }

    return true;
}

TEST3.pdf (897,1 Ko)

@sylvain.couture

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-56753

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.