Greetings!
Having some trouble figuring out how to get the Signature fields, namely the ones that look like Below, to Save or Re Load onto the pdf.
So far, the only kind of signature that I've been able to get to stay on the PDF is a Handwritten signature after Downloading it. I've noticed that base64 json won't display the Signature Field - neither Handwritten or above acrofields. Would that mean that the information about signatures would be coming from the ExportAnnotations action result? I haven't been able to figure out how to call that Action.
Controller actions for reference,
Some other questions I have:
Any help would be greatly appreciated,
Shannon
Query |
Details | |
Having some trouble figuring out how to get the Signature fields, namely the ones that look like Below, to Save or Re Load onto the pdf.
So far, the only kind of signature that I've been able to get to stay on the PDF is a Handwritten signature after Downloading it. I've noticed that base64 json won't display the Signature Field - neither Handwritten or above acrofields. Would that mean that the information about signatures would be coming from the ExportAnnotations action result? I haven't been able to figure out how to call that Action.
|
You can only export the annotations using the ExportAnnotation method. You can’t be able to export the signatures in the PDF Viewer. This is the default behavior of the PDF Viewer. However, you can get the signature using the retrieveFormFields() method. Please refer to the below code snippet.
Code Snippet:
| |
Is it possible to remove/hide the options for a Type and Upload Signature?
|
Yes. You can customize the signature panel using the signatureFieldSettings property. However, currently, we have facing an issue with the signatureFieldSettings property. The fix for the reported issue will be included in our weekly release on November 3rd, 2021. You can track the status using the below feedback link.
| |
|
We suspect that the reported issue is due to exporting the signature in the PDF Viewer. As we mentioned in the first update, you can’t be able to export the signature. However, you can get the signature using the retrieveFormFields method. | |
After applying a draw signature onto the SignatureField, an inline SVG tag is generated on the DOM. I've been able to cross reference this to the value of SignatureFields in formFieldCollection, but in formFieldCollections, that value is a parsed version of the d attribute of the path tag. Is that what's supposed to be read in the Export / Import Annotations Action? |
We will draw the signature in the canvas using the mouse position and get the X and Y coordinates of the mouse down position then we will create the signature based on that coordinate. So, the path of the signature is represented as the X and Y coordinates. You can add the signature programmatically in the signature field using the updateFormFieldsValue() method. Please refer to the below code snippet and sample.
To Update the signatures from code behind:
|
Thank you, Vasugi! This is really helpful!
Is the only way to set the Signature Field value by Javascript? Is there no way to set the path value in C# for a byte[] / base64 string conversion?