How can I handle rerender webviewer , without refresh page?

How can I handle rerender webviewer , without refresh page?

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

Hi,

Thank you for contacting WebViewer Support.

To clarify, when you say “rerender webviewer” are you wanting to destroy WebViewer instance and create another one? Or do you want to load another document? Or do you need to refresh all pages and annotations?

If you want to update the WebViewer display you can use documentViewer.refreshAll() and documentViewer.updateView() methods. Otherwise, please let me know what is the specific case you want to rerender it so I can help you netter with it.

- API documentation for documentViewer.refreshAll()
- API documentation for documentViewer.updateView()

Best Regards,

Dandara Navarro
Web Software Developer
PDFTron Systems, Inc.
www.pdftron.com

Hi, I need to update my webviewer to see new props.
Because I try to load another document without reload page, but webviewer, doesn’t see new incoming changes

Hi,

Thank you for clarifying. In order to give you a better answer, I’d like to ask you some questions:

  • What new props do you want to see?
  • What income changes do you expect to see and are not happening?
  • Is it possible for you to send me a code snippet of how you’re loading the document?
  • And is there any specific file that this is happening? If so, can you provide me?

Best Regards,

Dandara Navarro
Web Software Developer
PDFTron Systems, Inc.