Update all signature fields in a PDF Document

Description:

A multi-page PDF document has a signature field on each page.

The PDF Viewer is opened with `enableFormDesigner = false` because I do not want that the user to be able to add, edit or delete the existing form fields.


Requirement:

When the user fills a signature field (on a random page), I want to update all the other signature fields within the document (regardless on the page in which they exist) - with the same signature filled by the user.


The code I've tried:

- in a callback for the `addSignature` event, I store the `event.data` in a variable.

- I get all the fields in the document with the `retrieveFormFields()` method and filter those that are unsigned.

- for each field described above, I use `updateFormFieldsValue(field)`. A sample of the code would be:

formFields.forEach(field => {
field.signatureType = [signatureType]; // Draw, Type or Image
field.value = data;
if (signatureType === SignatureType.Type) {
field.fontFamily = signedField.fontFamily;
}
this.pdfViewer.updateFormFieldsValue(field);
});

The issue:

It doesn't work. Even if the field values are updated, the signature is not drawn in the field.


Can you please help me with a solution?

Thank you!

8 Replies

VS Vasugi Sivajothi Syncfusion Team April 6, 2022 11:33 AM UTC

Hi Marius,


We were able to reproduce the reported issue “Unable to update the signature programmatically for all the signature fields in a PDF document” with the provided details. We will analyze further on this and update you with more details on April 8, 2022.


Regards,

Vasugi.



VS Vasugi Sivajothi Syncfusion Team April 8, 2022 04:58 PM UTC

Hi Marius,


We have confirmed that the reported issue is a defect and logged the defect report for the same. The fix for this issue will be included in our upcoming weekly NuGet release on April 27, 2022.


You can track the status using the below feedback link.

https://www.syncfusion.com/feedback/34068/unable-to-update-the-signature-data-programmatically-for-all-the-signature-fields


Regards,

Vasugi.



ML Marius Leustean April 11, 2022 09:36 AM UTC

Hi Vasugi,


Thank you for the update.



VS Vasugi Sivajothi Syncfusion Team April 27, 2022 03:42 PM UTC

Hi Marius,


Sorry for the inconvenience. The fix for the reported issue was not included in our latest release. However, it will be included in our upcoming weekly release on May 11, 2022.


Regards,

Vasugi.



VS Vasugi Sivajothi Syncfusion Team May 12, 2022 02:14 PM UTC

Hi Marius,


Sorry for the inconvenience. The fix for the reported issue was not included in our latest release. However, it will be included in our upcoming weekly release on May 25, 2022.


Regards,

Vasugi.



SK Shamini Kiruba Sobers Syncfusion Team May 25, 2022 04:51 PM UTC

Hi Marius,


Sorry for the inconvenience. The fix was not included in our latest weekly NuGet release. However, we will include the fix in our upcoming weekly NuGet release without further delay on June 1, 2022.


Regards,

Shamini



MK Mubeen Kouser Syed Shabuddin Hussaini Syncfusion Team June 1, 2022 01:44 PM UTC

Hi Marius,


Sorry for the inconvenience. The fix was not included in our latest weekly NuGet release. However, we will include the fix in our upcoming weekly NuGet release without further delay on June 8, 2022.


Regards,

Mubeen




SK Shamini Kiruba Sobers Syncfusion Team June 8, 2022 03:16 PM UTC

Hi Marius,


We have fixed the reported issue and the fix for the reported issue was included in our latest weekly release v20.1.0.59. Kindly upgrade to that version to get the issue resolved.

   

Packages:   

   

Service side package

ASP.NET Core :      

https://www.nuget.org/packages/Syncfusion.EJ2.PdfViewer.AspNet.Core.Windows/ 
https://www.nuget.org/packages/Syncfusion.EJ2.PdfViewer.AspNet.Core.Linux/       

https://www.nuget.org/packages/Syncfusion.EJ2.PdfViewer.AspNet.Core.OSX/      

       

ASP.NET MVC:      

https://www.nuget.org/packages/Syncfusion.EJ2.PdfViewer.AspNet.Mvc5/      

https://www.nuget.org/packages/Syncfusion.EJ2.PdfViewer.AspNet.Mvc4/


CDN: http://cdn.syncfusion.com/ej2/20.1.59/dist/ej2.min.js
   

https://cdn.syncfusion.com/ej2/20.1.59/material.css


Regards,

Shamini


Loader.
Up arrow icon