How to retrieve PDF Viewer signature field image
I can not find out how to retrieve the signature image as base64 string or similar value
SIGN IN To post a reply.
11 Replies
1 reply marked as answer
AA
Akshaya Arivoli
Syncfusion Team
July 27, 2020 12:41 PM UTC
Hi Andrey ,
Thank you for contacting Syncfusion support.
We can import/export handwritten signature as JSON object when the isSignatureEditable is set to true in the PDF Viewer
|
<SfPdfViewer DocumentPath="PDF_Succinctly.pdf"ID="PdfViewer" ServiceUrl="https://ej2services.syncfusion.com/production/web-services/api/pdfviewer" IsSignatureEditable="true" Height="500px" Width="1060px"></SfPdfViewer>
|
Please try it and revert us with more details about your requirement ,PDF document and the error details if you still need further assistance.
Regards,
Akshaya
Marked as answer
MA
Mr Andrey Voronov
July 27, 2020 01:26 PM UTC
I added IsSignatureEditable=true but ExportFormFieldsAsObject does not return signature field value.
Also is it possible to hide "Save signature" check box ?
<button @onclick="GetFormData">Get Data </button>
<SfPdfViewerServer @ref="PDFViewer" DocumentPath="@DocumentPath" Height="100%" Width="100%"
IsSignatureEditable="true"
EnableNavigationToolbar="false"
EnableAnnotationToolbar="false"
EnableShapeAnnotation="false"
EnableCommentPanel="false">
</SfPdfViewerServer>
private async Task GetFormData()
{
var values = await PDFViewer.ExportFormFieldsAsObject();
}
AA
Akshaya Arivoli
Syncfusion Team
July 28, 2020 11:05 AM UTC
Hi Andrey,
Thank you for your update.
Currently we do not have support to preserve the Pdf form field signature in import/export json. However we will analyze further on this and update you with more details on July 30th, 2020
Regards,
Akshaya
EH
Eric Holland
November 5, 2020 02:14 AM UTC
I did not see a final reply and I need this same feature. Is there any update on the ability to get the signature image.
Thanks
SM
Selvakumar Murugan
Syncfusion Team
November 5, 2020 05:09 PM UTC
Hi Eric Holland,
Sorry for Inconvenience Caused
Currently we are checking analyzing the possibilities to “provide support to preserve the form field signature image in import/export JSON ” with high priority and we will update further details on 6th November 2020.
Regards,
AA
Akshaya Arivoli
Syncfusion Team
November 10, 2020 03:47 AM UTC
Hi Eric,
Currently we have not provided support for import and export support for signature. Can you please confirm whether you need to export the handwritten signature or the signature in the signature field or both, So that would be helpful for us to procced further.
Regards,
Akshaya
MA
Mr Andrey Voronov
November 10, 2020 08:19 AM UTC
I need to export signature as base64 encoded image
AA
Akshaya Arivoli
Syncfusion Team
November 11, 2020 04:16 PM UTC
Hi Andrey,
In our current implementation, we have provided the support for drawing the signature as the draw(path), image, and also as a text. So, can you please confirm whether you will add the signature as the image in the signature field So that we can able to retrieve them as a base64 string? If you draw them as a path, We can’t able to retrieve them as base64 string we will retrieve them as a path only. Kindly provide the details that would be helpful for us to analyze more and assist you better.
Regards,
Akshaya
Hello
How can i convert this draw(path) to png or to base64
SK
Shamini Kiruba Sobers
Syncfusion Team
April 25, 2022 06:26 PM UTC
Hi Francisco,
We are analyzing your query and we will update the details on April 26, 2022.
Regards,
Shamini
SK
Shamini Kiruba Sobers
Syncfusion Team
April 26, 2022 05:40 PM UTC
Hi Francisco,
Kindly let us know the platform and the Syncfusion PDF Viewer version that you are using at your end. Also, let us know in which event (say AddSignature, SignatureSelect or any other event) you are trying to retrieve the signature field image so that we can check the feasibility at our end to provide solution for converting the path data to base64 or return as the base64 string directly.
Regards,
Shamini
SIGN IN To post a reply.
- 11 Replies
- 6 Participants
- Marked answer
-
MA Mr Andrey Voronov
- Jul 24, 2020 01:52 PM UTC
- Apr 26, 2022 05:40 PM UTC