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

Free Support Forum - aspose.com

How to extract normalAppearance to get signature coordinates

Hello there,
I want to extract the signature coordinates in a signed pdf document.
Here is attached the property normalAppearance that I want to extract in order to obtain the X, Y of the signature :
image.png (43.0 KB)
I use this fonction to extract data : "SignatureField sf = field as SignatureField;"
Is it possible to extract the information present in this property? If so how should we proceed :slight_smile:

Thank you in advance for your reply,

Best regards
Romain BARRE

@RomainBARRE

I request you to try the following code and share your feedback.

string input = dataDir + "ExtractSignatureInfo.pdf";
using (Document pdfDocument = new Document(input))
{
    foreach (Field field in pdfDocument.Form)
    {
        SignatureField sf = field as SignatureField;
        var rectangle = sf.GetRectangle(false);
    }
}

Hello, thank you for your response,
Unfortunately, these are not the correct coordinates. The latter are easily exploitable but to obtain the right data, you must have access to the property of the object : NormalAppearance
Here is an illustration of the desired data : image.png (123.1 KB)

Best regards
Romain BARRE

@RomainBARRE

A ticket with ID PDFNET-50467 has been created in our issue tracking system to further investigate the issue on our end. This thread has been linked with the issue so that you may be notified once the issue will be fixed.