How to close PDF Viewer after submit button click

Posted by: paineb on 30 December 2019, 4:08 pm EST

  • Posted 30 December 2019, 4:08 pm EST

    Hello -

    We are using the documents.pdf lib to merge submitted pdf form fields into a flat pdf. All works great except we cannot figure how to close the pdf after the submit button is processed as is done in your demo at the url below. We are showing the pdf in an iframe (also tried outside of an iframe) yet are unable to navigate off the pdf after the form submission. Can you explain how you solved this or better send the full source of your demo? I am looking for your host page code that processes the form submission and hides the iframe or pdf viewer control. That code is not included in the sample on your site.

    Demo URL:
    https://www.grapecity.com/documents-api-pdf/demos/basics/forms/form-fields/pdf-cs
  • Marked as Answer

    Replied 2 January 2020, 12:44 am EST

    Hi,
    The following blog describes the same, please refer:
    https://www.grapecity.com/blogs/fill-and-submit-pdf-forms-on-web

    Hope it helps!

    Regards,
    Manish Gupta
Need extra support?

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

Learn More

Forum Channels