Posted 6 January 2022, 2:03 pm EST
After user add graphical signature to pdf file using GcPdfViewer
How can i submit and save the signed file to the server?
Forums Home / Document Solutions / Document Solutions for PDF
Posted by: moshek on 6 January 2022, 2:03 pm EST
Posted 6 January 2022, 2:03 pm EST
After user add graphical signature to pdf file using GcPdfViewer
How can i submit and save the signed file to the server?
Posted 7 January 2022, 2:07 am EST
Hi,
For this, we need to override the OnModifiedDocument method for SupportApi and save the document at the required place. We also need to add the custom save button to save the changes on the server and load the PDF from server.
Please refer to the attached sample for reference.
Regards,
Manish Gupta
Posted 16 May 2022, 9:48 am EST
I dont want Download option in GCPDF Viewer only Saving Modified document
Posted 16 May 2022, 11:48 pm EST
Hi Patrick,
With reference to the following demo sample:
https://www.grapecity.com/documents-api-pdfviewer/demos/ui-customization/save-changes/purejs
The following code should be avoid:
// viewer.toolbarLayout.viewer.default.splice(0, 0, 'download');
// viewer.toolbarLayout.viewer.mobile.splice(0, 0, 'download');
var annotationEditorButtons = ['custom-save', 'edit-select', 'edit-sign-tool', '$split', 'edit-text', 'edit-free-text', 'edit-ink', 'edit-square',
'edit-circle', 'edit-line', 'edit-polyline', 'edit-polygon', 'edit-stamp', 'edit-link',
'$split', 'edit-redact', 'edit-redact-apply', 'edit-erase', '$split', 'new-document', '$split', 'new-page', 'delete-page'];
In the same way, you may customize the layouts as per your need.
Regards
Manish Gupta
Posted 17 May 2022, 7:43 am EST
Hi Sir, The above code does not work I loaded the document I want to Save Modified document store on my Local storage click on save button dont want download just Save Click Event Loaded document i edit just to be saving on my local storage But GCPDFViewer Included my App when i edit the pdf document could not save button is disable
Posted 18 May 2022, 6:20 am EST
Hi Patrick,
As we understand, you would like to save the modified document in the localstorage on a button click. You would not like to save the PDF in the client machine.
If yes, please refer to the following demo sample:
https://www.grapecity.com/documents-api-pdfviewer/demos/ui-customization/save-changes/purejs
In the sample, the custom save button saves the modified document and load in the PDFViewer the updated document. On completing the updated document load, you may call the localstorage API to save the PDF on client localstorage.
Hope it helps!
Regards,
Manish Gupta
Posted 19 May 2022, 5:32 am EST
Hi Patrick,
The SupportApi is dependent on GcPdf which supports NETFramework >=4.6.1. So please upgrade the NetFramework to 4.6.1 if possible.
The Framework up-gradation may work for you correctly.
Regards,
Manish Gupta