How to count the number of fields that have received a signature?

We have an app that, among other things, opens a pdf and auto fills in fields with data from the db. That all works fine.

Now there are some fields that require signatures. There could be one or more on a pdf. 

How can we know how many fields require a signature?

How can we tell if a field has received some markings (I guess we can not ensure that it is a signature, but we would be glad to know that ink was applied to the field).

How can we count the number of fields that have been signed?

We have come across this combination of code:

pdfViewerControl.InkAdded += pdfViewer_InkAdded;       
 private void pdfViewer_InkAdded(object sender, InkAddedEventArgs args)        
{         }

Thanks for looking at this!


1 Reply

VD Vikram Devaraj Syncfusion Team June 24, 2022 11:25 AM UTC

Hi Will,

Based on your requirement we have created and attached a sample to find the signature fields count and to find whether each signature field is signed or not. However, to find the signatures in fields (
IsSigned) is only works for existing signatures and it doesn’t work if we dynamically add a signature to the filed using sfpdfviewer. Please let us confirm your requirement, whether you need to check the signature is signed or not while adding signatures dynamically as well. If yes, please let us know how you add the signature- using signature pad or using AddHandwrittenSiganture API .

Regards,
Vikram


Attachment: SavePDFUsingNative_87f72f23.zip

Loader.
Up arrow icon