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?
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.
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.
Regards,
Vasugi.
Hi Vasugi,
Thank you for the update.
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.
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.
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
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
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:
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