Queries on GcPdfViewer

Posted by: balmukunda.shrestha on 9 June 2020, 2:08 pm EST

  • Posted 9 June 2020, 2:08 pm EST

    We are evaluating the GcPdfViewer with redaction. Can you please let me know how pdf redaction works in grapecity pdf viewer?
    As per following documentation, we need to send both pdf and redaction changes to server and the server returns pdf with redaction changes back to the client side to view the pdf document with redaction. Doesn't it affect the performance as everytime we need to send pdf back to client to load the file?

    We have client side angular project and web api 2 as backend created using c#.net framework.
    Can we apply the redaction changes in client side and just send those changes in server to create redacted pdf? We will then store those redaction changes in database so that we can get the redacted info and apply in the pdf file loaded in the viewer?

    Thanks in advance.
  • Replied 9 June 2020, 10:44 pm EST

    Please have a look on the working demo sample for the same. As you click on save button in PdfViewer after editing the form. The edited PDF file would get downloaded .

    Please let us know if you have any further queries.

    You may also save the changes on the Database but for that, we need to follow different approaches as follows.

    Manish Gupta
  • Replied 9 June 2020, 11:10 pm EST

    Thanks for reply.

    Our requirement is not to save the data filled up in pdf form in the database. We need to save the redacted information applied in the standard pdf file such as height, width, x and y coordinate, redacted color etc.
    Does the GcPdfViewer javascript api provides some client side callback events which return those redacted information?

  • Replied 10 June 2020, 9:49 pm EST

    Hi Balamukunda,
    We are sorry, we are unable to find out a way for now and we have forwarded this request to the concerned team for further investigation with internal tracking id DOC-2053.

    Manish Gupta
  • Replied 6 July 2020, 12:39 am EST

    As per the developer comment:
    Our GcPdfViewerController (shipped as source code and provides server side support for GcPdfViewer editing) includes a method:

    /// <summary>
    /// Method is called when client modifications applied to an open document.
    /// </summary>
    /// <param name="documentLoader"></param>
    public virtual void OnDocumentModified(GcPdfDocumentLoader documentLoader)


    that can be overridden by a user custom controller and will get called on any modification to the PDF. An app may enable only redacts in the viewer, to limit the possible changes.

    Hope this helps.

    Manish Gupta
Need extra support?

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

Learn More

Forum Channels