Please give a brief summary of your issue:
When I try to use docViewer.setCurrentPage() in the callback for docViewer.on(‘documentLoaded’), I can see the page I want briefly display and then the Webviewer immediately jumps back to first page.
Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
Please provide a link to a minimal sample where the issue is reproducible:
I have asked the developer to update the referenced guide to provide more details.
I will do my best to explain given the information that I know:
Some documents have open action in XFDF. These open action do different things. Here is one of the case.
We load the annotation’s XFDF in parallel with loading the document, hence why you are seeing this issue. This is not ideal and it is on our roadmap to fix in the future.
For the code provided:
If there is a “go to action on document open”, don’t do it.
The effect is that if there are other “go to actions”, then it won’t work anymore.
For your case described here: the code provided will not affect you.