Save signed file

Posted by: moshek on 6 January 2022, 5:03 am EST

  • Posted 6 January 2022, 5:03 am EST

    After user add graphical signature to pdf file using GcPdfViewer

    How can i submit and save the signed file to the server?

  • Posted 6 January 2022, 5:07 pm EST


    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.


    Manish Gupta

  • Posted 16 May 2022, 12:48 am EST

    I dont want Download option in GCPDF Viewer only Saving Modified document

  • Posted 16 May 2022, 2:48 pm EST

    Hi Patrick,

    With reference to the following demo sample:

    The following code should be avoid:

    // viewer.toolbarLayout.viewer.default.splice(0, 0, 'download');
        //, 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.


    Manish Gupta

  • Posted 16 May 2022, 10:43 pm 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 17 May 2022, 9:20 pm 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:

    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!


    Manish Gupta

  • Posted 18 May 2022, 12:17 am EST

    Hi thanks for the reply.

    I tested the sample and it works fine as expected.

    is there any sample code for Support API with ASP.NET web forms.

    I need to implement this in very old project but still running using ASP.Net framework 4.5.

    Please give some advise.


  • Posted 18 May 2022, 8:32 pm 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.


    Manish Gupta

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels