|
Query |
Details
| |
|
-signature pad pops up as clicks on signature field |
In our PDF Viewer, the signature pad popup will open while clicking the signature field. We have shared the sample and screenshot for your reference.
Screenshot:
| |
|
-checks if all signature fields are signed
-if no, prompt and jumps to the one of blank fields
-if yes, enables "submit"
|
In our PDF Viewer, we can enable the enableFormFieldValidation property and we can use the validateFormFields event to identify whether all the signature fields in the form fields are filled while downloading. If the signature field is not-filled, we do not have support to prompt and move to the non-filled signature field. However, we can add the signature programmatically in the non-filled signature field by using the given code snippets. After filling the form field data, we need to click the download button in the toolbar to submit the form. We have shared the sample and code snippet for your reference.
Code snippet:
|
|
<button id="save">save</button>
document.getElementById('save').addEventListener('click', () => {
viewer.download();
});
public IActionResult Download([FromBody] Dictionary<string, string> jsonObject)
{
PdfRenderer pdfviewer = new PdfRenderer(_cache); string documentBase = pdfviewer.GetDocumentAsBase64(jsonObject);
string base64String = documentBase.Split(new string[] { "data:application/pdf;base64," }, StringSplitOptions.None)[1];
if (base64String != null || base64String != string.Empty)
{
byte[] byteArray = Convert.FromBase64String(base64String);
MemoryStream ms = new MemoryStream(byteArray); var path = _hostingEnvironment.ContentRootPath; System.IO.File.WriteAllBytes(path + "/ouptut.pdf", byteArray);
}
return Content(string.Empty);
}
|
Thanks for your reply.
in our cases, for example, a contract requires buyer's & co-buyer's signatures.
-your demo shows "move the signature using the mouse and place them in the desired location"
what we want: the buyer clicks the buyer's signature box, pops up the signature panel, draws the signature, attaches the signature to the buyer's signature box automatically when clicking the "Create".
same for co-buyer.
is it doable?
-based on your reply, seems no way to merge buyer's & co-buyer's signatures to one PDF, if they are signed on different devices. right?
Thanks
How can this be done in a Flutter application? We are trying to implement these same requirements using your libraries but are finding limitations with the Flutter PDFViewer.
Hi Billing,
Support for rendering and adding a signature field to the Syncfusion Flutter Pdf Viewer will be added in the upcoming Volume 2 main release. The other requirements of signature will be implemented in future. Kindly use the following link for tack the status of the feature,
https://www.syncfusion.com/feedback/25265/support-for-pdf-form