We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

How can I tell if a form has been signed?

In our app we display a pdf accro form with two places for signatures. It is a typical legal form with a place for signature, printed name and date for each signature.

We would like some way to tell if a signature has been done in a field. If we do not have both signatures, then there is no reason to save the form. Note: we are only considering hand scrawled signatures - no electronic ones.

We have looked at PdfLoadedSignatureField.Signature, but it is null after having signed.

Where are signatures stored? We had the impression that it may be in annotations so we tried this code:

                PdfLoadedPage page = loadedDocument.Pages[0] as PdfLoadedPage;
                PdfLoadedAnnotationCollection annotations = page.Annotations;
                int cnt = annotations.Count;
 but there were zero annotations after having signed.

There does not seem to be an event that is comparable to OnSignature.

Plan B: When they tap in a signature field, a lovely form pops up where they can sign. When they are done, they tap the Apply button. can we capture that event somehow, along with the associated field, in order to perform some actions?

Will Autio

6 Replies

SS Sathish Sivakumar Syncfusion Team July 1, 2019 11:38 AM UTC

Hi Will, 
Thank you for contacting Syncfusion Support. 
Please find the details for your queries regarding  Hand-Written signature support in PDFViewer. 
S No 
PdfLoadedSignatureField.Signature, property is null after having signed. 
We have preserved the Hand-written signatures as ink annotation while saving the document. Currently we do not set the value for PdfLoadedSignatureField Property. So, the default value of that property will be null. 
When user tap in a signature field, a form pops up where they can sign. When they are done, they tap the Apply button. can we capture that event somehow, along with the associated field, in order to perform some actions 
At present we have “InkAdded” event to capture the addition of signature in the PDF document. But the event does not contain any data regarding the signature field on which the signature is added. We will analyze the feasibility of your requirement and update you further details on 03-July-2019 

JP Jhansi Priya Ramesh Syncfusion Team July 5, 2019 12:56 PM UTC

Hi Will,  
At present we do not have support to “Support the to track whether the signature field is signed”. But we have analyzed the feasibility and confirmed that we can provide support for tracking signed and unsigned count of signature field in the PDF document.  Also, we do not any have immediate plans for implementing the feature “Track the count of signed and unsigned Signature fields in the PDF document” and it will be included in any of our upcoming release.   
You can keep track on the feature using our feature management system,   
Kindly share us the more details of your requirement on this feature, so that we will consider it while implementing this feature in PdfViewerControl.   

DA Dan Avni October 3, 2022 02:51 PM UTC

How can we get the ink annotations since the page.Annotations is empty when the save document event is triggered.

Also, why is the Required property not working for the handwritten signatures?

MA ManojKumar Arumugasamy Syncfusion Team October 5, 2022 02:40 PM UTC

Hi Dan Avni,

Do you mean getting a signature annotation from the annotations on the "page.Annotations" during document saving? By default, our component will save the signature as flatten in the saved PDF document, so you will not see any signature annotations in the saved document. To disable this, you need to introduce an API in your code.

pdfViewer.AnnotationSettings.HandwrittenSignature.FlattenSignatureOnSave = true;

Please find the reference for this behavior in the link Handwritten signatures in Xamarin Pdf Viewer control | Syncfusion

What do you mean the required property is not working for a handwritten signature? Could you please elaborate so that we could help you more precisely?

Manoj Kumar

DA Dan Avni October 6, 2022 11:16 AM UTC

Thanks! I expected that if PdfSignatureField.Required was set to true and the signature was not filled, the user would receive an error message and not be able to save the document. But your response put me in the right direction to solve my issue.

MA ManojKumar Arumugasamy Syncfusion Team October 7, 2022 05:41 AM UTC

Thank you for the update I you need further assistance you can reach out us

Live Chat Icon For mobile
Up arrow icon